version: '3.8'

services:
  survey-app:
    build: .
    container_name: survey-system
    ports:
      - "8000:8000"
    volumes:
      - ./data/:/app/data
    environment:
      - TZ=Asia/Shanghai
      - PYTHONUNBUFFERED=1
    restart: unless-stopped
    networks:
      - survey-network
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8000/"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s

networks:
  survey-network:
    driver: bridge
