This repository has been archived by the owner on Jun 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
116 lines (113 loc) · 3 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
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
version: '3.4'
services:
base:
build:
context: .
dockerfile: ./base/Dockerfile
image: local/elmo_base
hg:
build: hgmo
command: hg --cwd /data/repos serve -p 8001 --webdir-conf=/app/webdir.conf
ports:
- "8001:8001"
volumes:
# not using storage, those are reading the client-side, we need upstream
- ./stage/hgmo:/data/repos
- ~/.mozbuild/version-control-tools:/app/version-control-tools
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/"]
a10n:
build:
context: .
dockerfile: a10n/Dockerfile
image: elmo_a10n
hg-poller:
command:
- bash
- -c
- PYTHONPATH=. /app/env/bin/python /app/env/bin/twistd -n --pidfile "" --umask 0077 get-pushes
image: elmo_a10n
environment:
- ELMO_TRANSPORT=amqp://foopy:foopy@rabbitmq:5672
- ELMO_DB_HOST=${ELMO_DB_HOST}
- ELMO_DB_NAME=${ELMO_DB_NAME}
- ELMO_DB_USER=${ELMO_DB_USER}
- ELMO_DB_PASSWORD=${ELMO_DB_PASSWORD}
- ELMO_SECRET_KEY="still just testing"
- ELMO_REPOSITORY_BASE=/data/repos
# - ELMO_HG_POLLER_DELAY=.3
volumes:
- ./stage/repos:/data/repos
links:
- rabbitmq
depends_on:
# rabbitmq:
# condition: service_healthy
- hg
a10n-hg-worker:
command:
- bash
- -c
- /app/a10n/scripts/a10n --env=/app/env hg
image: elmo_a10n
environment:
- ELMO_TRANSPORT=amqp://foopy:foopy@rabbitmq:5672
- ELMO_DB_HOST=${ELMO_DB_HOST}
- ELMO_DB_NAME=${ELMO_DB_NAME}
- ELMO_DB_USER=${ELMO_DB_USER}
- ELMO_DB_PASSWORD=${ELMO_DB_PASSWORD}
- ELMO_SECRET_KEY="still just testing"
- ELMO_REPOSITORY_BASE=/data/repos
volumes:
- ./stage/repos:/data/repos
links:
- rabbitmq
depends_on:
# rabbitmq:
# condition: service_healthy
- hg
bb:
build:
context: .
dockerfile: bb/Dockerfile
args:
shares: /data/shares
master: test-master
environment:
- ELMO_DB_HOST=${ELMO_DB_HOST}
- ELMO_DB_NAME=${ELMO_DB_NAME}
- ELMO_DB_USER=${ELMO_DB_USER}
- ELMO_DB_PASSWORD=${ELMO_DB_PASSWORD}
- ELMO_SECRET_KEY="still just testing"
- ELMO_REPOSITORY_BASE=/data/repos
- ELMO_BUILD_BASE=/data/builds
- ELMO_HG_SHARES=/data/shares
- ES_COMPARE_HOST=elasticsearch:9200
- ES_COMPARE_INDEX=elmo-comparisons
volumes:
- ./stage/builds:/data/builds
- ./stage/repos:/data/repos
links:
- hg
- elasticsearch
depends_on:
- hg
rabbitmq:
image: rabbitmq:management
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_DEFAULT_USER=foopy
- RABBITMQ_DEFAULT_PASS=foopy
# Doing healthcheck would be great, if it worked.
# healthcheck:
# test: ["CMD", "curl", "-f", "-ufopy:foopy", "http://localhost:15672/api/overview"]
# retries: 5
elasticsearch:
image: elasticsearch:2.4.5
ports:
- "9200:9200"
# volumes:
# repos:
# builds: