forked from hemenkapadia/DataTurks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.02 KB
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
version: '2.4'
services:
dataturks-db:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: 'rootpass'
ports:
- '3306:3306'
expose:
- '3306'
volumes:
- dataturks-db-vol:/var/lib/mysql
- ./custom_mysql_scripts/:/docker-entrypoint-initdb.d
healthcheck:
test: "mysqlshow --password=$$MYSQL_ROOT_PASSWORD 2> /dev/null | grep -q hope"
timeout: 20s
retries: 10
dataturks-app:
build:
context: ./
dockerfile: Dockerfile
restart: always
depends_on:
dataturks-db:
condition: service_healthy
expose:
- '3000-3001'
- '3030'
- '9090'
ports:
- '80:80'
volumes:
- dataturks-app-vol:/home/dataturks/dataturks-fe/uploads
- ./custom_onprem.yml:/home/dataturks/dataturks-be/onprem.yml
healthcheck:
test: "curl -s -o /dev/null -w '%{http_code}' http://localhost:9090/dtAPI | grep 404"
timeout: 20s
retries: 10
volumes:
dataturks-db-vol:
dataturks-app-vol: