forked from PLeVasseur/eclipse-sdv-projects-landscape2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 886 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 886 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
volumes:
l2_site: {}
services:
l2-build:
image: ${LANDSCAPE2_IMAGE:?set via --env-file}
user: "0:0"
working_dir: /work
volumes:
- .:/work:ro
- l2_site:/out
entrypoint: ["landscape2"]
command:
- build
- --data-file
- /work/data.yml
- --settings-file
- /work/settings.yml
- --guide-file
- /work/guide.yml
- --logos-path
- /work/logos
- --output-dir
- /out
l2-serve:
image: ${LANDSCAPE2_IMAGE:?set via --env-file}
volumes:
- l2_site:/site:ro
ports: ["8000:8000"]
entrypoint: ["landscape2"]
command: ["serve", "--landscape-dir", "/site"]
init: true
# export tar to stdout; host extracts so host owns files
l2-export:
image: busybox:1.36
volumes:
- l2_site:/site:ro
entrypoint: ["tar"]
command: ["-C","/site","-cf","-","."]