add ig_password

This commit is contained in:
decentral1se 2022-08-17 14:53:13 +02:00
parent 34e04c8a94
commit ce15378cf9
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
2 changed files with 10 additions and 1 deletions

View File

@ -5,10 +5,15 @@ services:
app:
environment:
- IG_USERNAME
- IG_PASSWORD
- IG_PASSWORD_FILE=/run/secrets/ig_password
- IG_PROXY="socks://proxy:9050"
proxy:
image: palnabarun/tor
networks:
- internal
secrets:
ig_password:
external: true
name: ${STACK_NAME}_ig_password_${SECRET_IG_PASSWORD_VERSION}

View File

@ -24,6 +24,10 @@ file_env() {
unset "$fileVar"
}
{{ if eq (env "IG_ENABLED") "1" }}
file_env "IG_PASSWORD"
{{ end }}
# upstream startup command
# https://raw.githubusercontent.com/DIYgod/RSSHub/master/Dockerfile
dumb-init --