/
docker-compose.yml
72 lines (64 loc) · 1.46 KB
/
docker-compose.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3.2'
networks:
pwg:
external: false
volumes:
sessions:
networks:
gitea:
driver: local
services:
controller:
build:
context: .
dockerfile: ./docker/controller/Dockerfile
image: playwithgo/controller
networks:
- pwg
volumes:
- .:/start:ro
command: ["-guideconfig=guides/gen_guide_structures.cue", "-prestepconfig=prestep_conf.cue", "-unsafe", "-origin=http://localhost:4000"]
working_dir: "/start"
haproxy:
container_name: haproxy
image: haproxy:2.2.3
networks:
- pwg
ports:
- "80:8080"
volumes:
- ./docker/haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
cmd_gitea:
build:
context: .
dockerfile: ./docker/cmd_gitea/Dockerfile
image: playwithgo/cmd_gitea
networks:
- pwg
environment:
- PLAYWITHGODEV_CONTRIBUTOR_USER
- PLAYWITHGODEV_CONTRIBUTOR_PASSWORD
command: ["/runbin/gitea", "serve"]
pwd:
build:
context: .
dockerfile: ./docker/pwd/Dockerfile
networks:
- pwg
environment:
- PWD_UNSAFE=true
command: ["-save", "/pwd/sessions", "-name", "pwd", "-l2", "pwd"]
volumes:
- sessions:/pwd
- /var/run/docker.sock:/var/run/docker.sock
working_dir: /start
container_name: pwd
site:
build:
context: .
dockerfile: ./docker/site/Dockerfile
volumes:
- ./:/srv/jekyll
ports:
- 4000:4000
command: ["jekyll", "serve"]