version: '3.8' services: bivekidaybot: build: context: . dockerfile: Dockerfile target: production container_name: bivekidaybot-app restart: unless-stopped ports: - "3015:3000" environment: - NODE_ENV=${NODE_ENV:-production} - PORT=${PORT:-3000} - DATABASE_URL=${DATABASE_URL} - TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN} - TZ=${TZ:-Europe/Moscow} env_file: - stack.env networks: - bivekidaybot-network healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s logging: driver: "json-file" options: max-size: "10m" max-file: "3" networks: bivekidaybot-network: driver: bridge volumes: app_data: driver: local