version: '3.8' services: slack-to-ntfy: build: . container_name: slack-to-ntfy ports: - "8080:8080" environment: # Replace with your ntfy server URL (without topic path) - NTFY_BASE_URL=https://your-ntfy-server.com # For token-based authentication, uncomment and replace with your ntfy Bearer token (e.g., tk_xxxx) - NTFY_TOKEN=tk_your_bearer_token_here # For username/password authentication, uncomment and replace with your ntfy credentials # - NTFY_USERNAME=your_username # - NTFY_PASSWORD=your_password # Bind configuration - BIND_ADDRESS=0.0.0.0 - BIND_PORT=8080 restart: unless-stopped # Optional: Resource limits deploy: resources: limits: memory: 32M cpus: '0.1' reservations: memory: 16M cpus: '0.05' # Health check using the built-in endpoint healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 start_period: 10s # Optional: Create a custom network networks: default: name: slack-ntfy-middleware