-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
70 lines (65 loc) · 1.86 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
version: '3.7'
services:
#
# FAF MySQL database.
#
faf-db:
container_name: faf-db
image: mariadb:10.6
networks:
- faf
- faf-extra
restart: unless-stopped
env_file: ./config/faf-db/faf-db.env
ports:
- "3306:3306"
volumes:
- ./config/faf-db/mysqld.cnf:/etc/mysql/mariadb.conf.d/mysqld-custom.cnf
- ./config/faf-db/mysql.cnf:/root/.my.cnf
- ./data/faf-db:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
#
# FAF MySQL database migrations creates & updates the database tables and some required data
#
faf-db-migrations:
container_name: faf-db-migrations
image: faforever/faf-db-migrations:v133
user: ${FAF_DB_USER}
networks:
- faf
restart: "no"
env_file: ./config/faf-db-migrations/faf-db-migrations.env
#
# RabbitMQ is open source message broker software (sometimes called message-oriented middleware) that implements the
# Advanced Message Queuing Protocol (AMQP).
#
faf-rabbitmq:
image: rabbitmq:3.9.29-management-alpine
container_name: faf-rabbitmq
hostname: rabbitmq.${DOMAINNAME}
ports:
- "15692:15692"
- "5672:5672"
env_file: ./config/faf-rabbitmq/faf-rabbitmq.env
user: ${FAF_RABBITMQ_USER}
restart: unless-stopped
networks:
faf:
aliases:
- "faf-rabbitmq"
volumes:
- ./config/faf-rabbitmq/enabled_plugins:/etc/rabbitmq/enabled_plugins
- ./data/faf-rabbitmq:/var/lib/rabbitmq
labels:
- "traefik.enable=true"
- "traefik.http.routers.faf-rabbitmq.rule=Host(`rabbitmq.${DOMAINNAME}`)"
- "traefik.http.routers.faf-rabbitmq.entryPoints=websecure"
- "traefik.http.services.faf-rabbitmq.loadbalancer.server.port=15672"
networks:
faf:
driver: bridge
faf-extra:
driver: bridge