1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 10:34:04 +00:00

Use env variables in docker-compose

This commit is contained in:
lukinovec 2023-04-25 14:33:09 +02:00
parent f4b0f4cee6
commit aafb629bae

View file

@ -53,15 +53,15 @@ services:
retries: 10 retries: 10
postgres: postgres:
image: 'postgres:15' image: 'postgres:15'
user: 'postgres' user: '${POSTGRES_USER:-postgres}'
ports: ports:
- '${POSTGRES_PORT:-5433}' - '${POSTGRES_PORT:-5433}'
environment: environment:
PGPASSWORD: '${POSTGRES_PASSWORD:-postgres}' PGPASSWORD: '${POSTGRES_PASSWORD:-postgres}'
PGPORT: '${POSTGRES_PORT:-5433}' PGPORT: '${POSTGRES_PORT:-5433}'
POSTGRES_DB: main POSTGRES_DB: main
POSTGRES_USER: 'postgres' POSTGRES_USER: '${POSTGRES_USER:-postgres}'
POSTGRES_PASSWORD: 'postgres' POSTGRES_PASSWORD: '${POSTGRES_PASSWORD:-postgres}'
expose: expose:
- '${POSTGRES_PORT:-5433}' - '${POSTGRES_PORT:-5433}'
healthcheck: healthcheck: