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
|
Network=container:gluetun
|
||||||
|
|
||||||
Environment=MAMID=$mam_id
|
|
||||||
Environment=BUFFER=1000
|
Environment=BUFFER=1000
|
||||||
Environment=WEDGEHOURS=0
|
Environment=WEDGEHOURS=0
|
||||||
Environment=VIP=1
|
Environment=VIP=1
|
||||||
|
|
||||||
|
Secret=mam_id,type=env,target=MAMID
|
||||||
|
|
|
@ -23,7 +23,7 @@ AutoUpdate=registry
|
||||||
Network=container:gluetun
|
Network=container:gluetun
|
||||||
|
|
||||||
Environment=QBT_USERNAME=$qbt_user
|
Environment=QBT_USERNAME=$qbt_user
|
||||||
Environment=QBT_PASSWORD=$qbt_password
|
|
||||||
Environment=QBT_ADDR=http://localhost:8080
|
Environment=QBT_ADDR=http://localhost:8080
|
||||||
Environment=GTN_ADDR=http://localhost:8000
|
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
|
Volume=/volumes/books/seedboxapi/config:/config
|
||||||
|
|
||||||
Environment=DEBUG=1
|
Environment=DEBUG=1
|
||||||
Environment=mam_id=$mam_id
|
|
||||||
Environment=interval=1
|
Environment=interval=1
|
||||||
|
|
||||||
|
Secret=mam_id,type=env,target=mam_id
|
||||||
|
|
|
@ -31,3 +31,9 @@ name = "qbittorrent"
|
||||||
routes = ["GET /v1/openvpn/portforwarded"]
|
routes = ["GET /v1/openvpn/portforwarded"]
|
||||||
auth = "none"
|
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
|
Network=container:gluetun
|
||||||
|
|
||||||
Environment=MAMID=$mam_id
|
|
||||||
Environment=BUFFER=1000
|
Environment=BUFFER=1000
|
||||||
Environment=WEDGEHOURS=0
|
Environment=WEDGEHOURS=0
|
||||||
Environment=VIP=1
|
Environment=VIP=1
|
||||||
|
|
||||||
|
Secret=mam_id,type=env,target=MAMID
|
||||||
|
|
|
@ -14,7 +14,6 @@ WantedBy=default.target
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
# TODO: Replace this with one that has tags
|
# TODO: Replace this with one that has tags
|
||||||
# Probably have to repack my own
|
|
||||||
Image=docker.io/mjmeli/qbittorrent-port-forward-gluetun-server:latest
|
Image=docker.io/mjmeli/qbittorrent-port-forward-gluetun-server:latest
|
||||||
ContainerName=qbittorrent-port-forward
|
ContainerName=qbittorrent-port-forward
|
||||||
HostName=qbittorrent-port-forward
|
HostName=qbittorrent-port-forward
|
||||||
|
@ -23,7 +22,7 @@ AutoUpdate=registry
|
||||||
Network=container:gluetun
|
Network=container:gluetun
|
||||||
|
|
||||||
Environment=QBT_USERNAME=$qbt_user
|
Environment=QBT_USERNAME=$qbt_user
|
||||||
Environment=QBT_PASSWORD=$qbt_password
|
|
||||||
Environment=QBT_ADDR=http://localhost:8080
|
Environment=QBT_ADDR=http://localhost:8080
|
||||||
Environment=GTN_ADDR=http://localhost:8000
|
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
|
Volume=/volumes/books/seedboxapi/config:/config
|
||||||
|
|
||||||
Environment=DEBUG=1
|
Secret=mam_id,type=env,target=mam_id
|
||||||
Environment=mam_id=$mam_id
|
|
||||||
Environment=interval=1
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue