services: postgres: image: postgres:16-alpine container_name: thebet365-postgres environment: POSTGRES_USER: thebet365 POSTGRES_PASSWORD: thebet365 POSTGRES_DB: thebet365 ports: - '5432:5432' volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ['CMD-SHELL', 'pg_isready -U thebet365'] interval: 5s timeout: 5s retries: 5 redis: image: redis:7-alpine container_name: thebet365-redis ports: - '6379:6379' volumes: - redis_data:/data healthcheck: test: ['CMD', 'redis-cli', 'ping'] interval: 5s timeout: 5s retries: 5 volumes: postgres_data: redis_data: