services:
  sba-web:
    image: manticorum67/sba-website:${VERSION:-latest}
    ports:
      - "803:80"  # Use internal port since nginx proxy manager handles external routing
    restart: unless-stopped
    volumes:
      - ./public:/usr/share/nginx/html/public
    healthcheck:
      test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/health"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s
    environment:
      - NODE_ENV=production
    networks:
      - default

networks:
  default:
    driver: bridge