Files
malenia-backend/docker-compose.yml

25 lines
541 B
YAML

services:
postgres:
env_file: .env
image: postgres:16-alpine
container_name: malenia-backend-postgres
environment:
TZ: UTC
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}",
]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data: