-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
83 lines (78 loc) · 2.37 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
83 lines (78 loc) · 2.37 KB
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
services:
mariadb:
image: mariadb:11
environment:
MARIADB_ROOT_PASSWORD: banana
MARIADB_DATABASE: faf-icebreaker
MARIADB_USER: faf-icebreaker
MARIADB_PASSWORD: banana
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
rabbitmq:
image: rabbitmq:3.12-management
environment:
RABBITMQ_DEFAULT_VHOST: /faf-core
RABBITMQ_DEFAULT_USER: faf-icebreaker
RABBITMQ_DEFAULT_PASS: banana
ports:
- "5672:5672"
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
loki:
image: grafana/loki
ports:
- "3100:3100"
healthcheck:
# For whatever reason Loki returns 503 for the first 15 seconds
test: wget -S -qO /dev/null http://localhost:3100/ready 2>&1 | awk '/HTTP\/[0-9.]+/ {if ($2 == 200) exit 0; else exit 1} END {if (NR == 0) exit 1}'
faf-icebreaker:
image: faforever/faf-icebreaker:1.1.3
ports:
- "0.0.0.0:8080:8080"
environment:
QUARKUS_PROFILE: dev
DB_URL: jdbc:mariadb://mariadb:3306/faf-icebreaker?ssl=false
RABBITMQ_HOST: rabbitmq
LOKI_BASE_URL: http://loki:3100
depends_on:
mariadb:
condition: service_healthy
rabbitmq:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "http://localhost:8080/q/health"]
interval: 10s
timeout: 5s
retries: 5
eturnal:
image: ghcr.io/processone/eturnal:1.12.1
ports:
- "0.0.0.0:3478:3478"
- "0.0.0.0:3478:3478/udp"
- "0.0.0.0:50000-50010:50000-50010/udp"
environment:
ETURNAL_RELAY_MIN_PORT: 50000
ETURNAL_RELAY_MAX_PORT: 50010
ETURNAL_SECRET: "banana"
# Idempotent INSERT of the eturnal service above into the faf-icebreaker db
eturnal-entry-in-icebreaker:
image: mariadb:11
entrypoint:
- sh
- -c
- >
mariadb -h mariadb -uroot -pbanana -D faf-icebreaker -e
"INSERT IGNORE INTO coturn_servers
(id, region, host, stun_port, turn_udp_port, turn_tcp_port, turns_tcp_port, preshared_key, contact_email, active)
VALUES (1, 'localhost', '127.0.0.1', 3478, 3478, 3478, null, 'banana', 'admin@faforever.com', 1);"
depends_on:
faf-icebreaker:
condition: service_healthy