-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.cicd.yml
56 lines (52 loc) · 1.42 KB
/
docker-compose.cicd.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
version: '2'
services:
cicd-master:
image: "{{ project_name }}-cicd-master:1.0.1"
container_name: "{{ project_name }}-cicd-master"
build:
context: ./cicd/master
env_file:
- ./cicd/master/db.env
environment:
- BUILDBOT_CONFIG_DIR=config
- BUILDBOT_WORKER_PORT=9989
- BUILDBOT_WEB_URL=http://localhost:8010/
- BUILDBOT_WEB_PORT=8010
links:
- cicd-db
depends_on:
- cicd-db
ports:
- "8010:8010"
- "9999:9999"
volumes:
- ./cicd/master/config/:/var/lib/cicd/config/
cicd-db:
image: "{{ project_name }}-cicd-db:1.0.1"
container_name: "{{ project_name }}-cicd-db"
build:
context: ./cicd/db
env_file:
- ./cicd/master/db.env
expose:
- "5432"
cicd-worker:
image: "{{ project_name }}-cicd-worker:1.0.1"
container_name: "{{ project_name }}-cicd-worker"
build:
context: ./cicd/worker
env_file:
- ./cicd/cicd.docker.env
environment:
DOCKER_CERT_PATH: //buildbot/certs
BUILDMASTER: {{ project_name }}-cicd-master
BUILDMASTER_PORT: 9989
WORKERNAME: {{ project_name }}-worker
WORKERPASS: pass
WORKER_ENVIRONMENT_BLACKLIST: DOCKER_BUILDBOT* BUILDBOT_ENV_* BUILDBOT_1* WORKER_ENVIRONMENT_BLACKLIST
volumes:
- ./:/buildbot/src:ro
links:
- cicd-master
depends_on:
- cicd-master