Use environment file, but allow it to be changed via an environment variable

This commit is contained in:
Kienan Stewart 2022-09-13 08:50:51 -04:00
parent 50885891f6
commit dc3bf77a53
1 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,8 @@ services:
- POSTGRES_USER=${TTRSS_DB_USER}
- POSTGRES_PASSWORD=${TTRSS_DB_PASS}
- POSTGRES_DB=${TTRSS_DB_NAME}
env_file:
- ${ENV_FILE:-.env}
volumes:
- db:/var/lib/postgresql/data
@ -17,6 +19,8 @@ services:
context:
./app
restart: unless-stopped
env_file:
- ${ENV_FILE:-.env}
volumes:
- app:/var/www/html
- ./config.d:/opt/tt-rss/config.d:ro
@ -28,6 +32,8 @@ services:
context:
./app
restart: unless-stopped
env_file:
- ${ENV_FILE:-.env}
volumes:
- backups:/backups
- app:/var/www/html
@ -40,6 +46,8 @@ services:
context:
./app
restart: unless-stopped
env_file:
- ${ENV_FILE:-.env}
volumes:
- app:/var/www/html
- ./config.d:/opt/tt-rss/config.d:ro
@ -52,6 +60,8 @@ services:
restart: unless-stopped
ports:
- ${HTTP_PORT}:80
env_file:
- ${ENV_FILE:-.env}
volumes:
- app:/var/www/html:ro
depends_on: