phase2: fix just another byte/string inconsistencies
[buildbot.git] / docker / docker-compose.yml
1 version: '2'
2
3 services:
4 rsync-server:
5 build:
6 context: ../
7 dockerfile: docker/rsync/Dockerfile
8 image: rsync:latest
9 restart: always
10 cpuset: '0'
11 environment:
12 SHARE_USER: upload
13 SHARE_PASSWORD: secret
14 volumes:
15 - './build/output:/data'
16
17 buildmaster-phase1:
18 build:
19 context: ../
20 dockerfile: docker/buildmaster/Dockerfile
21 image: buildmaster:latest
22 restart: always
23 cpuset: '0'
24 environment:
25 BUILDMASTER_PHASE: 1
26 BUILDMASTER_CONFIG: /config.ini
27 ports:
28 - '8010:8010'
29 - '9989:9989'
30 volumes:
31 - './config.ini:/config.ini'
32 - './build/master-phase1:/master'
33
34 buildmaster-phase2:
35 build:
36 context: ../
37 dockerfile: docker/buildmaster/Dockerfile
38 image: buildmaster:latest
39 restart: always
40 cpuset: '0'
41 environment:
42 BUILDMASTER_PHASE: 2
43 BUILDMASTER_CONFIG: /config.ini
44 ports:
45 - '8011:8011'
46 - '9990:9990'
47 volumes:
48 - './config.ini:/config.ini'
49 - './build/master-phase2:/master'
50
51 buildslave-phase1:
52 build:
53 context: ../
54 dockerfile: docker/buildslave/Dockerfile
55 image: buildslave:latest
56 restart: always
57 cpuset: 1-3
58 environment:
59 BUILDSLAVE_MASTER: buildmaster-phase1:9989
60 BUILDSLAVE_NAME: buildslave-phase1
61 BUILDSLAVE_PASSWORD: secret
62 links:
63 - 'rsync-server'
64 - 'buildmaster-phase1'
65 volumes:
66 - './build/slave-phase1:/builder'
67
68 buildslave-phase2:
69 build:
70 context: ../
71 dockerfile: docker/buildslave/Dockerfile
72 image: buildslave:latest
73 restart: always
74 cpuset: 1-3
75 environment:
76 BUILDSLAVE_MASTER: buildmaster-phase2:9990
77 BUILDSLAVE_NAME: buildslave-phase2
78 BUILDSLAVE_PASSWORD: secret
79 links:
80 - 'rsync-server'
81 - 'buildmaster-phase2'
82 volumes:
83 - './build/slave-phase2:/builder'