-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
54 lines (51 loc) · 1.21 KB
/
docker-compose.yaml
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
53
54
version: '2.4'
services:
mysql:
container_name: mysql
image: mysql/mysql-server:5.7
environment:
MYSQL_DATABASE: sensecap_monitor # create database sensecap_monitor;
MYSQL_ROOT_PASSWORD: 123456 # set pwd
MYSQL_ROOT_HOST: '%'
MYSQL_LOG_CONSOLE: 'true'
ports:
- "41030:3306"
restart: always
webapi:
restart: always
container_name: webapi
depends_on:
mysql:
condition: service_healthy
environment:
- IP=mysql
- PORT=3306
- PASSWORD=123456
- ORGID=${orgId}
- APIID=${apiId}
- APIKEY=${apiKey}
working_dir: /sensecap_webapi
build:
context: .
dockerfile: ./sensecap_webapi/Dockerfile
#image: sensecap-datavirt-saas-example_webapi
#working_dir: .
#volumes:
#- ./sensecap_webapi:/sensecap_webapi
ports:
- "9001:9001"
webdemo:
restart: always
container_name: webdemo
working_dir: /sensecap_demo
#image: sensecap-datavirt-saas-example_webdemo
build:
context: .
dockerfile: ./sensecap_demo/Dockerfile
ports:
- "6060:80"
depends_on:
- webapi
#volumes:
#- ./sensecap_demo/img:/usr/share/nginx/html/img
#- ./sensecap_demo:/sensecap_demo