services: postgres: image: postgres:16-alpine container_name: meshkee-postgres restart: unless-stopped ports: - "127.0.0.1:${POSTGRES_PORT:-5432}:5432" environment: POSTGRES_USER: ${POSTGRES_USER:-meshkee} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-meshkee_secret} POSTGRES_DB: ${POSTGRES_DB:-meshkee_cms} volumes: - postgres_data:/var/lib/postgresql/data - ./database/migrations:/docker-entrypoint-initdb.d:ro healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-meshkee} -d ${POSTGRES_DB:-meshkee_cms}"] interval: 5s timeout: 5s retries: 5 redis: image: redis:7-alpine container_name: meshkee-redis restart: unless-stopped ports: - "127.0.0.1:${REDIS_PORT:-6379}:6379" command: redis-server --appendonly yes volumes: - redis_data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 5s retries: 5 volumes: postgres_data: redis_data: