use TTRSS_DB_* variables instead of POSTGRES_* to set database configuration

pull/5/head
Andrew Dolgov 4 years ago
parent 49598c87da
commit 9fc0aaa2cd

@ -1,8 +1,9 @@
# Copy this file to .env before building the container. # Copy this file to .env before building the container.
# Put any local modifications here. # Put any local modifications here.
POSTGRES_USER=postgres TTRSS_DB_USER=postgres
POSTGRES_PASSWORD=password TTRSS_DB_NAME=postgres
TTRSS_DB_PASS=password
# This is only used by web-ssl container. # This is only used by web-ssl container.
#HTTP_HOST=localhost #HTTP_HOST=localhost

@ -4,8 +4,10 @@ services:
db: db:
image: postgres:12-alpine image: postgres:12-alpine
restart: unless-stopped restart: unless-stopped
env_file: environment:
- .env - POSTGRES_USER=${TTRSS_DB_USER}
- POSTGRES_PASSWORD=${TTRSS_DB_PASS}
- POSTGRES_DB=${TTRSS_DB_NAME}
volumes: volumes:
- db:/var/lib/postgresql/data - db:/var/lib/postgresql/data
@ -14,10 +16,6 @@ services:
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- .env - .env
environment:
- TTRSS_DB_NAME=${POSTGRES_USER}
- TTRSS_DB_USER=${POSTGRES_USER}
- TTRSS_DB_PASS=${POSTGRES_PASSWORD}
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
@ -27,10 +25,6 @@ services:
backups: backups:
image: cthulhoo/ttrss-fpm-pgsql-static image: cthulhoo/ttrss-fpm-pgsql-static
restart: unless-stopped restart: unless-stopped
environment:
- TTRSS_DB_NAME=${POSTGRES_USER}
- TTRSS_DB_USER=${POSTGRES_USER}
- TTRSS_DB_PASS=${POSTGRES_PASSWORD}
volumes: volumes:
- backups:/backups - backups:/backups
- app:/var/www/html - app:/var/www/html
@ -43,10 +37,6 @@ services:
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- .env - .env
environment:
- TTRSS_DB_NAME=${POSTGRES_USER}
- TTRSS_DB_USER=${POSTGRES_USER}
- TTRSS_DB_PASS=${POSTGRES_PASSWORD}
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

Loading…
Cancel
Save