incorporate secrets management
This commit is contained in:
parent
86ffc7e8f9
commit
1559ea8af6
7 changed files with 13 additions and 9 deletions
|
@ -21,8 +21,8 @@ AutoUpdate=registry
|
|||
|
||||
Network=container:gluetun
|
||||
|
||||
Environment=MAMID=$mam_id
|
||||
Environment=BUFFER=1000
|
||||
Environment=WEDGEHOURS=0
|
||||
Environment=VIP=1
|
||||
|
||||
Secret=mam_id,type=env,target=MAMID
|
||||
|
|
|
@ -23,7 +23,7 @@ AutoUpdate=registry
|
|||
Network=container:gluetun
|
||||
|
||||
Environment=QBT_USERNAME=$qbt_user
|
||||
Environment=QBT_PASSWORD=$qbt_password
|
||||
Environment=QBT_ADDR=http://localhost:8080
|
||||
Environment=GTN_ADDR=http://localhost:8000
|
||||
|
||||
Secret=qbt_pw,type=env,target=QBT_PASSWORD
|
||||
|
|
|
@ -24,5 +24,6 @@ Network=container:gluetun
|
|||
Volume=/volumes/books/seedboxapi/config:/config
|
||||
|
||||
Environment=DEBUG=1
|
||||
Environment=mam_id=$mam_id
|
||||
Environment=interval=1
|
||||
|
||||
Secret=mam_id,type=env,target=mam_id
|
||||
|
|
|
@ -31,3 +31,9 @@ name = "qbittorrent"
|
|||
routes = ["GET /v1/openvpn/portforwarded"]
|
||||
auth = "none"
|
||||
```
|
||||
|
||||
## Secrets
|
||||
|
||||
```bash
|
||||
printf $mam_id | podman secret create --replace --label STACK=MAM mam_id -
|
||||
```
|
||||
|
|
|
@ -21,8 +21,8 @@ AutoUpdate=registry
|
|||
|
||||
Network=container:gluetun
|
||||
|
||||
Environment=MAMID=$mam_id
|
||||
Environment=BUFFER=1000
|
||||
Environment=WEDGEHOURS=0
|
||||
Environment=VIP=1
|
||||
|
||||
Secret=mam_id,type=env,target=MAMID
|
||||
|
|
|
@ -14,7 +14,6 @@ WantedBy=default.target
|
|||
|
||||
[Container]
|
||||
# TODO: Replace this with one that has tags
|
||||
# Probably have to repack my own
|
||||
Image=docker.io/mjmeli/qbittorrent-port-forward-gluetun-server:latest
|
||||
ContainerName=qbittorrent-port-forward
|
||||
HostName=qbittorrent-port-forward
|
||||
|
@ -23,7 +22,7 @@ AutoUpdate=registry
|
|||
Network=container:gluetun
|
||||
|
||||
Environment=QBT_USERNAME=$qbt_user
|
||||
Environment=QBT_PASSWORD=$qbt_password
|
||||
Environment=QBT_ADDR=http://localhost:8080
|
||||
Environment=GTN_ADDR=http://localhost:8000
|
||||
|
||||
Secret=qbt_pw,type=env,target=QBT_PASSWORD
|
||||
|
|
|
@ -23,6 +23,4 @@ Network=container:gluetun
|
|||
|
||||
Volume=/volumes/books/seedboxapi/config:/config
|
||||
|
||||
Environment=DEBUG=1
|
||||
Environment=mam_id=$mam_id
|
||||
Environment=interval=1
|
||||
Secret=mam_id,type=env,target=mam_id
|
||||
|
|
Loading…
Add table
Reference in a new issue