forked from mozilla-bteam/bmo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
143 lines (132 loc) · 3.01 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
version: "3.4"
services:
bmo.test:
build: &bmo_build
context: .
dockerfile: Dockerfile
command: dev_httpd
volumes:
- bmo-data-dir:/app/data
- .:/mnt/sync
tmpfs:
- /tmp
- /run
environment: &bmo_env
- "BMO_inbound_proxies=*"
- BMO_db_host=bmo.db
- BMO_db_name=bugs
- BMO_db_pass=bugs
- BMO_db_user=bugs
- BMO_memcached_namespace=bugzilla
- BMO_memcached_servers=memcached:11211
- BMO_ses_password=password123456789!
- BMO_urlbase=http://localhost:8000/
- BUGZILLA_ALLOW_INSECURE_HTTP=1
- BZ_ANSWERS_FILE=/app/conf/checksetup_answers.txt
- BZ_DUO_BACKEND_HOST=externalapi.test:8001
- HTTP_BACKEND=morbo
- LOCALCONFIG_ENV=1
- LOG4PERL_CONFIG_FILE=log4perl-docker.conf
- MOJO_LISTEN=http://*:8000
- PORT=8000
- X_SES_CONFIGURATION_SET=ConfigSet
depends_on:
- bmo.db
- memcached
- s3
- gcs
- externalapi.test
ports:
- 8000:8000
bmo.jobqueue:
build: *bmo_build
command: jobqueue
volumes:
- bmo-data-dir:/app/data
tmpfs:
- /tmp
- /run
environment: *bmo_env
restart: always
depends_on:
- bmo.db
- memcached
bmo.feed:
build: *bmo_build
command:
- perl
- extensions/PhabBugz/bin/phabbugz_feed.pl
- start
- "-d"
- "-f"
volumes:
- bmo-data-dir:/app/data
tmpfs:
- /tmp
- /run
environment: *bmo_env
restart: always
depends_on:
- bmo.db
- memcached
bmo.pushd:
build: *bmo_build
command:
- perl
- extensions/Push/bin/bugzilla-pushd.pl
- start
- "-d"
- "-f"
volumes:
- bmo-data-dir:/app/data
tmpfs:
- /tmp
- /run
environment: *bmo_env
restart: always
depends_on:
- bmo.db
- memcached
bmo.db:
image: mysql:8
volumes:
- bmo-mysql-db:/var/lib/mysql
- ./docker/mysql:/etc/mysql/conf.d
tmpfs:
- /tmp
logging:
driver: "none"
environment:
- MYSQL_DATABASE=bugs
- MYSQL_USER=bugs
- MYSQL_PASSWORD=bugs
- MYSQL_ALLOW_EMPTY_PASSWORD=1
memcached:
image: memcached:latest
s3:
image: scireum/s3-ninja
volumes:
- "bmo-s3-data:/home/sirius/data"
gcs:
image: fsouza/fake-gcs-server
command: "-scheme http"
volumes:
- bmo-gcs-attachments:/data/attachments
- bmo-gcs-sitemapindex:/data/sitemapindex
- bmo-gcs-mining:/data/mining
externalapi.test:
build: *bmo_build
entrypoint: perl /app/external_test_api.pl daemon -l http://*:8001
ports:
- 8001:8001
volumes:
bmo-mysql-db:
bmo-data-dir:
bmo-s3-data:
bmo-gcs-attachments:
bmo-gcs-sitemapindex:
bmo-gcs-mining: