services: discountbot: build: . container_name: discountbot restart: unless-stopped ports: - "1977:1977" env_file: - .env.production # Use .env.development when testing locally volumes: - ./logs:/app/logs # Persist logs - ./config:/app/config # ← Configs stay on your Mac and are mounted healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:1977/status"] interval: 30s timeout: 5s retries: 3