forked from mozilla-releng/balrog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
121 lines (113 loc) · 2.61 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
117
118
119
120
121
# Some people have reported problems with the balrogui API proxy not working correctly.
# This appears to be the same problem reported in https://github.com/docker/compose/issues/2172,
# and seems to only occur with certain (older) versions of docker-compose.
version: '2.1'
services:
balrogadmin:
build:
context: .
dockerfile: Dockerfile.dev
depends_on:
balrogdb:
condition: service_healthy
entrypoint:
- bash
- scripts/initdb_and_run.sh
command: admin-dev
expose:
- "7070"
volumes:
- .:/app
links:
- balrogdb
environment:
- DBURI=mysql://balrogadmin:balrogadmin@balrogdb/balrog
- SECRET_KEY=blahblah
- PORT=7070
- LOG_FORMAT=plain
- LOG_LEVEL=WARNING
# Grab mail information from the local environment
- SMTP_HOST
- SMTP_PORT
- SMTP_USERNAME
- SMTP_PASSWORD
- SMTP_TLS
- NOTIFY_TO_ADDR
- NOTIFY_FROM_ADDR
- STAGING
healthcheck:
test: nc -z -v balrogadmin 7070
interval: 5s
timeout: 30s
retries: 10
balrogpub:
build:
context: .
dockerfile: Dockerfile.dev
depends_on:
balrogdb:
condition: service_healthy
command: public
ports:
- "9090:9090"
volumes:
- .:/app
environment:
- DBURI=mysql://balrogadmin:balrogadmin@balrogdb/balrog
- SECRET_KEY=blahblah
- PORT=9090
- LOG_FORMAT=plain
- LOG_LEVEL=WARNING
links:
- balrogdb
balrogagent:
build: ./agent
depends_on:
balrogadmin:
condition: service_healthy
volumes:
- ./agent:/app
links:
- balrogadmin
environment:
- BALROG_API_ROOT=http://balrogadmin:7070/api
- BALROG_USERNAME=balrogadmin
- BALROG_PASSWORD=balrogadmin
- TELEMETRY_API_ROOT=abc
- LOG_FORMAT=plain
- LOG_LEVEL=WARNING
balrogui:
image: node:0.10
depends_on:
balrogadmin:
condition: service_healthy
ports:
- "8080:8080"
links:
- balrogadmin
volumes:
- ./ui:/app
- .cache:/cache
environment:
- WEB_PORT=8080
entrypoint:
- /bin/bash
- /app/docker-entrypoint.sh
balrogdb:
build:
context: .
dockerfile: Dockerfile.database
expose:
- "3306"
environment:
- MYSQL_DATABASE=balrog
- MYSQL_USER=balrogadmin
- MYSQL_PASSWORD=balrogadmin
- MYSQL_ROOT_PASSWORD=admin
volumes:
- .cache/mysql:/var/lib/mysql
healthcheck:
test: nc -z -v balrogdb 3306
interval: 30s
timeout: 30s
retries: 10