# 此文件已废弃
# 前端容器已整合到 coin-exchange-new/docker-compose.yml 中
# 请使用后端的 docker-compose.yml 进行部署

version: '3.8'

services:
  coin-manager:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: coin-manager
    ports:
      - "10082:80"
    restart: unless-stopped
    networks:
      - coin-network
    healthcheck:
      test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/index.html"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s

networks:
  coin-network:
    name: coin-network
    external: true
