Files
nas_control_bot/docker-compose.yml

40 lines
929 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

services:
synology-bot:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
env_file:
- .env
environment:
- DOCKER_ENV=true
volumes:
- ./logs:/app/logs
# Если у вас есть файлы конфигурации или данные, которые нужно сохранять:
# - ./data:/app/data
healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:8080/health', timeout=5)"]
interval: 60s
timeout: 10s
retries: 3
start_period: 20s
networks:
- bot-network
wol-proxy:
build:
context: .
dockerfile: Dockerfile.wol
restart: unless-stopped
network_mode: host
nas-emulator:
build:
context: .
dockerfile: Dockerfile.nas
restart: unless-stopped
network_mode: host
networks:
bot-network:
driver: bridge