# 四套主题扩展 — 与 docker-compose.prod.yml 合并使用：
# docker compose -f docker-compose.prod.yml -f docker-compose.themes.yml --env-file .env.docker up -d
#
# 关联文档：docs/四套主题Docker部署任务.md

services:
  player2:
    image: thebet365-player:${PLAYER2_IMAGE_TAG:-theme-2}
    container_name: thebet365-player2
    depends_on:
      api:
        condition: service_healthy
    ports:
      - '${BIND_ADDR:-127.0.0.1}:${PLAYER2_PORT:-8083}:80'
    healthcheck:
      test: ['CMD-SHELL', 'wget -q -O /dev/null http://127.0.0.1/ || exit 1']
      interval: 10s
      timeout: 5s
      retries: 6
      start_period: 10s
    restart: unless-stopped
    networks:
      - thebet365

  player3:
    image: thebet365-player:${PLAYER3_IMAGE_TAG:-theme-3}
    container_name: thebet365-player3
    depends_on:
      api:
        condition: service_healthy
    ports:
      - '${BIND_ADDR:-127.0.0.1}:${PLAYER3_PORT:-8084}:80'
    healthcheck:
      test: ['CMD-SHELL', 'wget -q -O /dev/null http://127.0.0.1/ || exit 1']
      interval: 10s
      timeout: 5s
      retries: 6
      start_period: 10s
    restart: unless-stopped
    networks:
      - thebet365

  player4:
    image: thebet365-player:${PLAYER4_IMAGE_TAG:-theme-4}
    container_name: thebet365-player4
    depends_on:
      api:
        condition: service_healthy
    ports:
      - '${BIND_ADDR:-127.0.0.1}:${PLAYER4_PORT:-8085}:80'
    healthcheck:
      test: ['CMD-SHELL', 'wget -q -O /dev/null http://127.0.0.1/ || exit 1']
      interval: 10s
      timeout: 5s
      retries: 6
      start_period: 10s
    restart: unless-stopped
    networks:
      - thebet365
