version: '3.8'

services:
  sms-receiver:
    build: .
    container_name: sms-receiver-go
    restart: unless-stopped
    ports:
      - "28001:28001"
    volumes:
      - ./data:/app/data
      - ./config.yaml:/app/config.yaml:ro
    environment:
      - TZ=Asia/Shanghai
    healthcheck:
      test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:28001/health"]
      interval: 30s
      timeout: 3s
      retries: 3
      start_period: 5s
    networks:
      - sms-network

networks:
  sms-network:
    driver: bridge
