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

Use env variables in docker-compose

This commit is contained in:
lukinovec 2023-04-25 13:31:27 +02:00
parent e4aeccb2b0
commit b4238e5cf8

View file

@ -55,15 +55,15 @@ services:
image: 'postgres:15' image: 'postgres:15'
user: 'postgres' user: 'postgres'
ports: ports:
- '${FORWARD_DB_PORT:-5434}:5434' - '${POSTGRES_PORT:-5434}'
environment: environment:
PGPASSWORD: 'postgres' PGPASSWORD: '${POSTGRES_PASSWORD:-postgres}'
PGPORT: '5434' PGPORT: '${POSTGRES_PORT:-5434}'
POSTGRES_DB: main POSTGRES_DB: main
POSTGRES_USER: 'postgres' POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'postgres' POSTGRES_PASSWORD: 'postgres'
expose: expose:
- "5434" - '${POSTGRES_PORT:-5434}'
healthcheck: healthcheck:
test: test:
- CMD - CMD