Fix pg test and limit env leak

This commit is contained in:
Dmitry Bikulov
2026-08-27 17:11:56 +03:00
parent 832622e96d
commit d92a497a02
4 changed files with 11 additions and 5 deletions
+5 -2
View File
@@ -25,13 +25,16 @@ services:
image: postgres:18
container_name: outline-db
restart: unless-stopped
env_file: .env
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
networks:
- outline
volumes:
- ./data/outline-db:/var/lib/postgresql
healthcheck:
test: ["CMD", "pg_isready -U outline -d outline"]
test: ["CMD", "pg_isready", "-U", "outline", "-d", "outline"]
interval: 10s
timeout: 5s
retries: 5