Use environment file, but allow it to be changed via an environment variable
This commit is contained in:
parent
50885891f6
commit
dc3bf77a53
|
@ -9,6 +9,8 @@ services:
|
||||||
- POSTGRES_USER=${TTRSS_DB_USER}
|
- POSTGRES_USER=${TTRSS_DB_USER}
|
||||||
- POSTGRES_PASSWORD=${TTRSS_DB_PASS}
|
- POSTGRES_PASSWORD=${TTRSS_DB_PASS}
|
||||||
- POSTGRES_DB=${TTRSS_DB_NAME}
|
- POSTGRES_DB=${TTRSS_DB_NAME}
|
||||||
|
env_file:
|
||||||
|
- ${ENV_FILE:-.env}
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/postgresql/data
|
- db:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
@ -17,6 +19,8 @@ services:
|
||||||
context:
|
context:
|
||||||
./app
|
./app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
env_file:
|
||||||
|
- ${ENV_FILE:-.env}
|
||||||
volumes:
|
volumes:
|
||||||
- app:/var/www/html
|
- app:/var/www/html
|
||||||
- ./config.d:/opt/tt-rss/config.d:ro
|
- ./config.d:/opt/tt-rss/config.d:ro
|
||||||
|
@ -28,6 +32,8 @@ services:
|
||||||
context:
|
context:
|
||||||
./app
|
./app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
env_file:
|
||||||
|
- ${ENV_FILE:-.env}
|
||||||
volumes:
|
volumes:
|
||||||
- backups:/backups
|
- backups:/backups
|
||||||
- app:/var/www/html
|
- app:/var/www/html
|
||||||
|
@ -40,6 +46,8 @@ services:
|
||||||
context:
|
context:
|
||||||
./app
|
./app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
env_file:
|
||||||
|
- ${ENV_FILE:-.env}
|
||||||
volumes:
|
volumes:
|
||||||
- app:/var/www/html
|
- app:/var/www/html
|
||||||
- ./config.d:/opt/tt-rss/config.d:ro
|
- ./config.d:/opt/tt-rss/config.d:ro
|
||||||
|
@ -52,6 +60,8 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- ${HTTP_PORT}:80
|
- ${HTTP_PORT}:80
|
||||||
|
env_file:
|
||||||
|
- ${ENV_FILE:-.env}
|
||||||
volumes:
|
volumes:
|
||||||
- app:/var/www/html:ro
|
- app:/var/www/html:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
Loading…
Reference in New Issue