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

Make postgres work in tests

This commit is contained in:
lukinovec 2023-04-25 12:33:56 +02:00
parent ae25e25715
commit e4aeccb2b0
2 changed files with 11 additions and 7 deletions

View file

@ -53,13 +53,17 @@ services:
retries: 10
postgres:
image: 'postgres:15'
user: 'postgres'
ports:
- '${FORWARD_DB_PORT:-5433}:5433'
- '${FORWARD_DB_PORT:-5434}:5434'
environment:
PGPASSWORD: '${DB_PASSWORD:-password}:password'
PGPASSWORD: 'postgres'
PGPORT: '5434'
POSTGRES_DB: main
POSTGRES_USER: '${DB_USERNAME:-root}:root'
POSTGRES_PASSWORD: '${DB_PASSWORD:-password}:password'
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'postgres'
expose:
- "5434"
healthcheck:
test:
- CMD