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 13:31:27 +02:00
parent e4aeccb2b0
commit b4238e5cf8

View file

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