-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathcompose.yaml
More file actions
37 lines (37 loc) · 1001 Bytes
/
compose.yaml
File metadata and controls
37 lines (37 loc) · 1001 Bytes
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
services:
bouncer:
build:
context: .
command: go-bouncer
ports:
- 8000:8000
environment:
BOUNCER_ADDR: "0.0.0.0:8000"
BOUNCER_DB_DSN: "bounceruser:bouncerpass@tcp(mysql:3306)/bouncerdb"
BOUNCER_PINNED_BASEURL_HTTP: download.cdn.mozilla.net/pub
BOUNCER_PINNED_BASEURL_HTTPS: download-installer.cdn.mozilla.net/pub
depends_on:
mysql:
condition: service_healthy
mysql:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: bouncerdb
MYSQL_USER: bounceruser
MYSQL_PASSWORD: bouncerpass
volumes:
- ./docker/initdb.d/:/docker-entrypoint-initdb.d/
healthcheck:
test: ["CMD", "mysql", "-u", "root", "-prootpass", "--execute", "SHOW DATABASES;"]
interval: 3s
retries: 5
timeout: 5s
nginx:
image: nginx
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- 18000:80
depends_on:
- bouncer