Files
backend/docker-compose.yml
T

26 lines
652 B
YAML

services:
postgres:
image: postgres:16-alpine
container_name: mana-postgres
restart: unless-stopped
ports:
- "127.0.0.1:${POSTGRES_PORT:-5436}:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER:-mana}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-mana_secret}
POSTGRES_DB: ${POSTGRES_DB:-mana_collection}
volumes:
- mana_postgres_data:/var/lib/postgresql/data
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U ${POSTGRES_USER:-mana} -d ${POSTGRES_DB:-mana_collection}",
]
interval: 5s
timeout: 5s
retries: 5
volumes:
mana_postgres_data: