-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 981 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# RSS-Lance docker-compose
#
# Usage:
# docker compose up -d # start server + fetcher
# docker compose up server # server only
# docker compose run --rm fetcher-once # one-shot fetch
#
# Lance data lives in ./data on the host (or replace with an S3/NFS/Samba mount).
services:
server:
build: .
container_name: rss-lance-server
ports:
- "8080:8080"
volumes:
- ./data:/data
restart: unless-stopped
fetcher:
build: .
container_name: rss-lance-fetcher
command: ["python", "fetcher/main.py"]
volumes:
- ./data:/data
restart: unless-stopped
# One-shot: fetch all due feeds then exit
fetcher-once:
build: .
command: ["python", "fetcher/main.py", "--once"]
volumes:
- ./data:/data
profiles: ["tools"]
# One-shot: insert demo feeds then exit
demo-data:
build: .
command: ["python", "fetcher/demo_feeds.py"]
volumes:
- ./data:/data
profiles: ["tools"]