1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 12:24: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
postgres:
image: 'postgres:15'
user: 'postgres'
user: '${POSTGRES_USER:-postgres}'
ports:
- '${POSTGRES_PORT:-5433}'
environment:
PGPASSWORD: '${POSTGRES_PASSWORD:-postgres}'
PGPORT: '${POSTGRES_PORT:-5433}'
POSTGRES_DB: main
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'postgres'
POSTGRES_USER: '${POSTGRES_USER:-postgres}'
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD:-postgres}'
expose:
- '${POSTGRES_PORT:-5433}'
healthcheck: