-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 886 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (30 loc) · 886 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
services:
database:
# Pinned to 11.8 LTS version, community support till 04-07-2028, enterprise: 15-10-2033.
image: "mariadb:10.5.9"
container_name: qcg-database
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD:-cern}"
ports:
- "3306:3306"
volumes:
- type: volume
source: database-data
target: /var/lib/mysql
- type: bind
read_only: true
source: ./docker/database/configuration
target: /etc/mysql/conf.d
- type: bind
read_only: true
source: ./docker/database/populate
target: /docker-entrypoint-initdb.d
# Max total time for the container to start 2 mins (20s + 5*20s)
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 20s
timeout: 20s
retries: 5
start_period: 20s
volumes:
database-data: