2026-06-11 14:03:36 +08:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
rsskeeper:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
container_name: rsskeeper
|
|
|
|
|
ports:
|
2026-06-11 14:31:29 +08:00
|
|
|
- "7329:7329"
|
2026-06-11 14:03:36 +08:00
|
|
|
volumes:
|
|
|
|
|
- ./data:/app/data
|
2026-06-11 14:31:29 +08:00
|
|
|
env_file:
|
|
|
|
|
- .env
|
2026-06-11 14:03:36 +08:00
|
|
|
restart: unless-stopped
|
|
|
|
|
healthcheck:
|
2026-06-11 14:31:29 +08:00
|
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:7329/api/health')"]
|
2026-06-11 14:03:36 +08:00
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 10s
|