Files
botPillbox/docker-compose.yml
2026-01-06 12:19:04 +07:00

26 lines
594 B
YAML

version: '3.8'
services:
pill-bot:
build: .
container_name: pill-reminder-bot
restart: unless-stopped
environment:
- TZ=${TZ:-Europe/Moscow}
env_file:
- .env
volumes:
- ./data:/app/data
# Для разработки можно монтировать код:
# - ./bot.py:/app/bot.py:ro
healthcheck:
test: ["CMD-SHELL", "pgrep -f python || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"