Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 1.49 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (44 loc) · 1.49 KB
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
43
44
45
46
47
48
49
name: castor
x-castor: &castor
image: ghcr.io/stupside/castor:latest
restart: unless-stopped
volumes:
- ./config.yaml:/config.yaml:ro
- castor-cache:/root/.cache
services:
scraping-server:
<<: *castor
command: ["scraping-server"]
ports:
- "127.0.0.1:8412:8412"
environment:
CASTOR_SERVERS__SCRAPING__LISTEN: ":8412"
CASTOR_SERVERS__SCRAPING__TOKEN: ${CASTOR_SERVERS__SCRAPING__TOKEN:?set it in .env}
media-server:
<<: *castor
command: ["media-server"]
# Linux host networking lets TVs reach the advertised media address.
network_mode: host
# Intel VA-API; drop on hosts without /dev/dri.
devices:
- /dev/dri:/dev/dri
environment:
CASTOR_SERVERS__MEDIA__LISTEN: ":8410"
CASTOR_SERVERS__MEDIA__TOKEN: ${CASTOR_SERVERS__MEDIA__TOKEN:?set it in .env}
api-server:
<<: *castor
command: ["api-server"]
# Device discovery and control run on the TV's LAN, not a bridge network.
network_mode: host
depends_on:
- media-server
- scraping-server
environment:
CASTOR_SERVERS__API__LISTEN: ":8411"
CASTOR_SERVERS__API__TOKEN: ${CASTOR_SERVERS__API__TOKEN:?set it in .env}
CASTOR_SERVERS__MEDIA__URL: http://127.0.0.1:8410
CASTOR_SERVERS__MEDIA__TOKEN: ${CASTOR_SERVERS__MEDIA__TOKEN:?set it in .env}
CASTOR_SERVERS__SCRAPING__URL: http://127.0.0.1:8412
CASTOR_SERVERS__SCRAPING__TOKEN: ${CASTOR_SERVERS__SCRAPING__TOKEN:?set it in .env}
volumes:
castor-cache: