-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (29 loc) · 902 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
30 lines (29 loc) · 902 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
# MariaDB for local development, matching the default MARIADB_DSN in
# env.example. The server itself runs on the host via ./run.sh.
#
# docker compose up -d
# ./run.sh
#
# makefaster_test is created alongside makefaster so the Go tests have a
# throwaway schema to drop and re-migrate:
# MAKEFASTER_TEST_MARIADB_DSN='root:root@tcp(127.0.0.1:3306)/makefaster_test?parseTime=true' \
# go test ./... --- run from backend/
services:
mariadb:
image: mariadb:11
restart: unless-stopped
environment:
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: makefaster
ports:
- "3306:3306"
volumes:
- mariadb-data:/var/lib/mysql
- ./scripts/mariadb-init:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 5s
timeout: 5s
retries: 20
volumes:
mariadb-data: