forked from ICTASL/MyHealthApp-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.03 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
version: "2.1"
volumes:
files:
driver: local
mysql:
driver: local
backup:
driver: local
services:
covid19-service:
build: ./
expose:
- "8000"
restart: always
ports:
- 8000:8000
depends_on:
- db
environment:
- COVID19_SERVICE_DOMAIN="localhost"
healthcheck:
test: ["CMD", "/usr/bin/healthcheck"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- files:/mnt/data
db:
image: webhippie/mariadb:latest
restart: always
expose:
- "3306"
ports:
- 3306:3306
environment:
- MARIADB_ROOT_PASSWORD=root
- MARIADB_USERNAME=root
- MARIADB_PASSWORD=root
- MARIADB_DATABASE=covid19_db
- MARIADB_MAX_ALLOWED_PACKET=128M
- MARIADB_INNODB_LOG_FILE_SIZE=64M
healthcheck:
test: ["CMD", "/usr/bin/mysql --user=root --password=root--execute \"SHOW DATABASES;\""]
interval: 30s
timeout: 10s
retries: 5
volumes:
- mysql:/var/lib/mysql
- backup:/var/lib/backup