-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
63 lines (60 loc) · 1.46 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
# docker-compose.yml for Azothacore.
#
# Start the server with `docker compose up -d --build`
#
# Don't make changes this file! make a `docker-compose.override.yml` and make your
# changes there instead.
version: '3'
services:
database:
image: mariadb:lts
profiles: ['']
networks:
- az-network
ports:
- ${DOCKER_DB_EXTERNAL_PORT:-3306}:3306
environment:
- MYSQL_ROOT_PASSWORD=${DOCKER_DB_ROOT_PASSWORD:-password}
volumes:
- type: volume
source: az-database
target: /var/lib/mysql
command:
- mariadbd
- --max_allowed_packet
- "1073741824"
restart: unless-stopped
healthcheck:
test: "/usr/bin/mysql --user=root --password=$$MYSQL_ROOT_PASSWORD --execute \"SHOW DATABASES;\""
interval: 5s
timeout: 10s
retries: 40
test-database:
image: mariadb:lts
profiles: [test]
networks:
- az-network
ports:
- 8893:3306
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=database
volumes:
- type: volume
source: test-az-database
target: /var/lib/mysql
command:
- mariadbd
- --max_allowed_packet
- "1073741824"
restart: unless-stopped
healthcheck:
test: "/usr/bin/mysql --user=root --password=$$MYSQL_ROOT_PASSWORD --execute \"SHOW DATABASES;\""
interval: 5s
timeout: 10s
retries: 40
volumes:
az-database:
test-az-database:
networks:
az-network: