-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
70 lines (64 loc) · 1.55 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
version: '3'
services:
# main net web proxy
webproxy:
image: nginx
restart: on-failure
volumes:
- ./webproxy/conf:/etc/nginx/:ro
- ./ssl/mount:/etc/letsencrypt:ro
ports:
- "80:80"
- "443:443"
links:
- buildbot_project1
- buildbot_project2
# shared db
db:
build: postgres
env_file:
- buildbotcommon.env
environment:
- POSTGRES_MULTIPLE_DATABASES=project1,project2
expose:
- 5432
# buildbot project1
buildbot_project1:
image: "buildbot/buildbot-master:v0.9.14"
volumes:
- ./buildbot/project1:/var/lib/buildbot # config files
env_file:
- buildbotcommon.env
environment:
- POSTGRES_DB=project1
- BUILDBOT_WORKER_PORT=9989
- BUILDBOT_WEB_URL=https://www.example.com/buildbot/project1/
- BUILDBOT_WEB_PORT=8080
links:
- db
depends_on:
- db
expose:
- "8080" # web port
ports:
- "9989:9989" # buildbot worker connect in here
# buildbot project2
buildbot_project2:
image: "buildbot/buildbot-master:v0.9.14"
volumes:
- ./buildbot/project2:/var/lib/buildbot # config files
env_file:
- buildbotcommon.env
environment:
- POSTGRES_DB=project2
- BUILDBOT_WORKER_PORT=9989
- BUILDBOT_WEB_URL=https://www.example.com/buildbot/project2/
- BUILDBOT_WEB_PORT=8080
links:
- db
depends_on:
- db
expose:
- "8080" # web port
ports:
- "9990:9989" # buildbot worker connect in here