Files
nas_control_bot/docker-compose.yml

43 lines
1.0 KiB
YAML
Raw 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
container_name: synology-power-control-bot
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
container_name: wol-proxy
restart: unless-stopped
network_mode: host
nas-emulator:
build:
context: .
dockerfile: Dockerfile.nas
container_name: nas-emulator
restart: unless-stopped
network_mode: host
networks:
bot-network:
driver: bridge