anthil_web/docker-compose.yml
ilya_zahvatkin 5db40f2b2d add docker
2025-09-11 12:10:39 +07:00

30 lines
749 B
YAML

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