forked from mozilla-services/buildhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
90 lines (83 loc) · 2.06 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: '2'
services:
db:
# As of Mar 8 2017, we run 9.6.6 in Buildhub production.
image: postgres:9.6
elasticsearch:
# As of Mar 8 2017, we run es 5.4.0 in Buildhub production.
image: docker.elastic.co/elasticsearch/elasticsearch:5.4.0
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
ports:
- 9200:9200
kinto:
build:
# So it can read files from within 'jobs/'
context: .
dockerfile: kinto/Dockerfile
depends_on:
- "db"
- "elasticsearch"
ports:
- "8888:8888"
volumes:
- $PWD:/app
testkinto:
build:
# So it can read files from within 'jobs/'
context: .
dockerfile: testkinto/Dockerfile
ports:
- "9999:9999"
# XXX Not sure we need this. What business do you have in there?!
volumes:
- $PWD:/app
buildhub:
build:
context: .
dockerfile: Dockerfile
image: mozilla/buildhub
depends_on:
- "kinto"
environment:
- SERVER_URL=http://kinto:8888/v1
- CSV_DOWNLOAD_DIRECTORY=./csv-download-directory
volumes:
- $PWD:/app
- ~/.bash_history:/root/.bash_history
# All things within the 'buildhub' directive are meant to be executed
# with 'docker-compose run buildhub ...'
# By setting this to "true", it means we can run `docker-compose up`
# and this one won't start anything.
command: "true"
ui:
build:
context: .
dockerfile: ui/Dockerfile
depends_on:
- "kinto"
environment:
- REACT_APP_KINTO_COLLECTION_URL=/v1/buckets/build-hub/collections/releases/
- NODE_ENV=development
ports:
- "3000:3000"
- "35729:35729"
volumes:
- $PWD/ui:/app
command: start
docs:
build:
context: .
dockerfile: docs/Dockerfile
volumes:
- $PWD:/app
# Do nothing when 'docker-compose up'
command: "true"