forked from fedora-copr/copr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
206 lines (189 loc) · 4.37 KB
/
docker-compose.yaml
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
version: '3'
services:
# @TODO Probably not all backend services should use the same Dockerfile
backend:
build:
context: .
dockerfile: docker/backend/Dockerfile
hostname: backend
command: /usr/sbin/runuser -u copr -g copr -- /usr/bin/copr_be.py
depends_on:
- backend-log
- backend-vmm
stdin_open: true
tty: true
volumes:
- .:/opt/copr:z
- results:/var/lib/copr/public_html/results
- backend-etc:/etc
backend-log:
build:
context: .
dockerfile: docker/backend/Dockerfile
hostname: backend-log
command: /usr/sbin/runuser -u copr -g copr -- /usr/bin/copr_run_logger.py
depends_on:
- redis
stdin_open: true
tty: true
volumes:
- .:/opt/copr:z
- results:/var/lib/copr/public_html/results
- backend-etc:/etc
backend-vmm:
build:
context: .
dockerfile: docker/backend/Dockerfile
hostname: backend-vmm
command: /usr/sbin/runuser -u copr -g copr -- /usr/bin/copr_run_vmm.py
depends_on:
- backend-log
stdin_open: true
tty: true
volumes:
- .:/opt/copr:z
- results:/var/lib/copr/public_html/results
- backend-etc:/etc
backend-build:
build:
context: .
dockerfile: docker/backend/Dockerfile
hostname: backend-build
command: /usr/sbin/runuser -u copr -g copr -G obsrun -- /usr/bin/copr_run_build_dispatcher.py
depends_on:
- backend-log
- backend-vmm
stdin_open: true
tty: true
volumes:
- .:/opt/copr:z
- results:/var/lib/copr/public_html/results
- backend-etc:/etc
backend-action:
build:
context: .
dockerfile: docker/backend/Dockerfile
hostname: backend-action
command: /usr/sbin/runuser -u copr -g copr -- /usr/bin/copr_run_action_dispatcher.py
depends_on:
- backend-log
- backend-vmm
stdin_open: true
tty: true
volumes:
- .:/opt/copr:z
- results:/var/lib/copr/public_html/results
- backend-etc:/etc
backend-signd:
build:
context: .
dockerfile: docker/backend/Dockerfile
hostname: backend-signd
command: /usr/sbin/runuser -u copr -g copr -- /usr/sbin/signd
stdin_open: true
tty: true
volumes:
- .:/opt/copr:z
- results:/var/lib/copr/public_html/results
- backend-etc:/etc
redis:
image: centos/redis-32-centos7
hostname: redis
backend_httpd:
build:
context: .
dockerfile: docker/backend_httpd/Dockerfile
hostname: backend_httpd
ports:
- "5002:5002"
volumes:
- results:/var/lib/copr/public_html/results
builder:
build:
context: .
dockerfile: docker/builder/Dockerfile
hostname: builder
stdin_open: true
tty: true
privileged: true
cap_add:
- NET_ADMIN
- SYS_ADMIN
volumes:
- .:/opt/copr:z
frontend:
build:
context: .
dockerfile: docker/frontend/Dockerfile
hostname: frontend
depends_on:
- database
- redis
links:
- database
stdin_open: true
tty: true
ports:
- "5000:5000"
volumes:
- .:/opt/copr:z
database:
build:
context: .
dockerfile: docker/database/Dockerfile
hostname: database
stdin_open: true
tty: true
environment:
- POSTGRESQL_USER=copr-fe
- POSTGRESQL_PASSWORD=coprpass
- POSTGRESQL_DATABASE=coprdb
ports:
- 5432:5432
distgit:
build:
context: .
dockerfile: docker/distgit/Dockerfile
hostname: distgit
stdin_open: true
tty: true
volumes:
- .:/opt/copr:z
- dist-git:/var/lib/dist-git
distgit-httpd:
build:
context: .
dockerfile: docker/distgit-httpd/Dockerfile
hostname: distgit-httpd
stdin_open: true
tty: true
ports:
- "5001:80"
volumes:
- .:/opt/copr:z
- dist-git:/var/lib/dist-git
keygen-signd:
build:
context: .
dockerfile: docker/keygen-signd/Dockerfile
hostname: keygen-signd
stdin_open: true
tty: true
volumes:
- .:/opt/copr:z
- copr-keygen:/var/lib/copr-keygen
keygen-httpd:
build:
context: .
dockerfile: docker/keygen-httpd/Dockerfile
hostname: keygen-httpd
stdin_open: true
tty: true
volumes:
- .:/opt/copr:z
- copr-keygen:/var/lib/copr-keygen
volumes:
results:
copr-keygen:
dist-git:
backend-etc: