-
Notifications
You must be signed in to change notification settings - Fork 56
/
docker-compose.yml
50 lines (47 loc) · 989 Bytes
/
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
services:
xet-web:
build:
context: .
dockerfile: Dockerfile
ports:
- 127.0.0.1:8000:80
environment:
DB_SERVER: xet-db
DB_PORT: 3306
DB_USER: xet
DB_PASSWORD: xet
DATABASE: xet
depends_on:
- xet-db
networks:
- xet-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 5
xet-db:
image: mariadb:11.4.2
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: xet
MYSQL_USER: xet
MYSQL_PASSWORD: xet
ports:
- 127.0.0.1:3306:3306
networks:
- xet-network
volumes:
- ./db/:/docker-entrypoint-initdb.d/
- xet-data:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
networks:
xet-network:
driver: bridge
volumes:
xet-data: