version: '3.8' services: postgres: image: postgres:15-alpine environment: POSTGRES_DB: foxhunt POSTGRES_USER: foxhunt POSTGRES_PASSWORD: foxhunt123 POSTGRES_INITDB_ARGS: "--auth-host=trust --auth-local=trust" ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data - ./init-db.sql:/docker-entrypoint-initdb.d/01-init-db.sql - ./migrations:/docker-entrypoint-initdb.d/migrations - ./docker-init-migrations.sh:/docker-entrypoint-initdb.d/99-run-migrations.sh healthcheck: test: ["CMD-SHELL", "pg_isready -U foxhunt -d foxhunt"] interval: 10s timeout: 5s retries: 5 redis: image: redis:7-alpine ports: - "6379:6379" volumes: - redis_data:/data volumes: postgres_data: redis_data: