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

Use specific Postgres version, use superuser credentials directly

This commit is contained in:
lukinovec 2023-05-29 09:54:40 +02:00
parent 1f9a344f33
commit 0cea45f101

View file

@ -52,10 +52,10 @@ services:
timeout: 10s timeout: 10s
retries: 10 retries: 10
postgres: postgres:
image: 'postgres:latest' image: postgres:11
environment: environment:
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD:-password}' # Superuser password POSTGRES_PASSWORD: password # Superuser password
POSTGRES_USER: '${POSTGRES_USER:-root}' # Superuser name POSTGRES_USER: root # Superuser name
POSTGRES_DB: main POSTGRES_DB: main
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U '${POSTGRES_USER}'"] test: ["CMD-SHELL", "pg_isready -U '${POSTGRES_USER}'"]