services: anthill-web: build: context: . dockerfile: Dockerfile container_name: anthill-web ports: - "8030:80" restart: unless-stopped environment: - NODE_ENV=production # Опциональные настройки для production deploy: resources: limits: memory: 512M reservations: memory: 256M # Проверка здоровья контейнера healthcheck: test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:80"] interval: 30s timeout: 10s retries: 3 start_period: 40s # Опциональная сеть для изоляции networks: default: name: anthill-network