forked from openSUSE/open-build-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 1.37 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
version: "2.1"
services:
db:
image: registry.opensuse.org/obs/server/unstable/containers/containers/openbuildservice/mariadb
ports:
- "3306:3306"
command: /usr/lib/mysql/mysql-systemd-helper start
cache:
image: registry.opensuse.org/obs/server/unstable/containers/containers/openbuildservice/memcached
ports:
- "11211:11211"
command: /usr/sbin/memcached -u memcached
backend:
image: registry.opensuse.org/obs/server/unstable/containers/containers/openbuildservice/backend
volumes:
- .:/obs:z
- ./dist/aws_credentials:/etc/obs/cloudupload/.aws/config:Z
- ./dist/ec2utils.conf:/etc/obs/cloudupload/.ec2utils.conf:Z
- ./dist/clouduploader.rb:/usr/bin/clouduploader:Z
command: /obs/contrib/start_development_backend -d /obs
worker:
image: registry.opensuse.org/obs/server/unstable/containers/containers/openbuildservice/backend
volumes:
- .:/obs:z
privileged: true
depends_on:
- backend
command: /obs/contrib/start_development_worker
frontend:
image: openbuildservice/frontend
command: foreman start -p 3000
build:
dockerfile: docker-files/Dockerfile
context: src/api
args:
CONTAINER_USERID: 1000
volumes:
- .:/obs:z
ports:
- "3000:3000"
- "1080:1080"
depends_on:
- db
- cache
- backend
- worker