services:
  sub2api-cn-relay-manager:
    build:
      context: .
      dockerfile: Dockerfile
    image: sub2api-cn-relay-manager:local
    restart: unless-stopped
    env_file:
      - .env
    ports:
      - "8080:8080"
    volumes:
      - ./data:/data
    healthcheck:
      test: ["CMD", "sh", "-c", "wget -qO- http://127.0.0.1:8080/healthz >/dev/null"]
      interval: 15s
      timeout: 3s
      retries: 5
      start_period: 10s
