Files
symfony-skeleton/compose.yaml
hakutaku 65859bd87f wip
2025-09-23 19:15:07 +03:00

27 lines
733 B
YAML

services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "127.0.0.1:5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}" ]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
volumes:
- ${PWD}/.data/postgres:/var/lib/postgresql/data
restart: unless-stopped
redis:
image: redis:8.2
ports:
- "127.0.0.1:6379:6379"
volumes:
- ${PWD}/.data/redis:/data
command: redis-server --appendonly yes # Starts Redis with AOF persistence enabled
restart: unless-stopped