forked from play-with-go/play-with-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (78 loc) · 1.81 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3.2'
networks:
pwg:
external: false
volumes:
sessions:
networks:
gitea:
driver: local
services:
controller:
build:
context: .
dockerfile: ./docker/controller/Dockerfile
image: playwithgo/controller
ports:
- "8081:8080"
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", "l2"]
volumes:
- sessions:/pwd
- /var/run/docker.sock:/var/run/docker.sock
working_dir: /start
container_name: pwd
l2:
build:
context: .
dockerfile: ./docker/l2/Dockerfile
networks:
- pwg
command: ["-ssh_key_path", "/etc/ssh/ssh_host_rsa_key", "-save", "/pwd/networks", "-name", "l2"]
volumes:
- networks:/pwd
- /var/run/docker.sock:/var/run/docker.sock
working_dir: /start
container_name: l2
site:
build:
context: .
dockerfile: ./docker/site/Dockerfile
volumes:
- ./:/srv/jekyll
ports:
- 4000:4000
command: ["jekyll", "serve"]