42 lines
1007 B
YAML
42 lines
1007 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
seo-optimizer:
|
|
build: .
|
|
container_name: seo-optimizer
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
# WordPress credentials
|
|
- WP_APP_PASSWORD=${WP_APP_PASSWORD}
|
|
|
|
# Claude API key
|
|
- CLAUDE_API_KEY=${CLAUDE_API_KEY}
|
|
|
|
# Optimization configuration
|
|
- OPTIMIZATION_INTERVAL_HOURS=${OPTIMIZATION_INTERVAL_HOURS:-2.5}
|
|
|
|
# Logging
|
|
- LOG_LEVEL=${LOG_LEVEL:-INFO}
|
|
|
|
# API port
|
|
- API_PORT=8080
|
|
|
|
# Optional webhook URL
|
|
- WEBHOOK_URL=${WEBHOOK_URL:-}
|
|
volumes:
|
|
# Mount config file (optional, can use env vars instead)
|
|
- ./configs/config.yaml:/app/configs/config.yaml:ro
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/api/v1/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|