forked from chriszero/docker-vdr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
crane.yml
58 lines (49 loc) · 1.35 KB
/
crane.yml
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
50
51
52
53
54
55
56
57
containers:
vdr.data:
build:
context: vdr-data/.
image: chriszero/vdr.config
run:
# Map the volumes to your local filesystem to be able to edit
volume: ["volumes/vdrconf:/vdr/config", "volumes/etcvdr:/etc/vdr", "volumes/epgdconf:/epgd/config"]
vdr:
build:
context: vdr-headless/.
image: chriszero/vdr-headless
run:
volume: ["volumes/rec:/recordings"]
volumes-from: ["vdr.data"]
link: ["database"]
publish: ["2004:2004", "3000:3000", "4010-4020:4010-4020/udp", "6419:6419", "8002:8002", "8008:8008"]
detach: true
restart: always
epgd:
build:
context: vdr-epgd/.
image: chriszero/vdr-epgd
run:
volumes-from: ["vdr.data"]
publish: ["9999:9999"]
link: ["database","vdr"]
detach: true
restart: always
database:
build:
context: mariadb-epglv/.
image: chriszero/mariadb-epglv
run:
volumes-from: ["vdr.data"]
publish: ["3306:3306"]
restart: always
detach: true
env:
- MYSQL_ROOT_PASSWORD=my-secret-pw
# Instructions for 'crane' tool (https://github.com/michaelsauter/crane)
# Build / Download
# $ crane provision -v vdr.config vdr epgd database
# Create instances
# $ crane create -v vdr.config vdr epgd database
# Start vdr
# $ docker start vdr
# Stop vdr
# $ docker stop vdr