forked from FISCO-BCOS/FISCO-BCOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 967 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
version: "3"
networks:
tars_net:
external:
name: tars-network
services:
tars-mysql:
image: mysql:5.6
ports:
- "3310:3306"
networks:
tars_net:
ipv4_address: 172.25.0.2
environment:
MYSQL_ROOT_PASSWORD: ""
restart: always
volumes:
- ~/app/tars/framework-mysql:/var/lib/mysql
- /etc/localtime:/etc/localtime
tars-framework:
image: tarscloud/framework:v3.0.1
networks:
tars_net:
ipv4_address: 172.25.0.3
# 3000 is the tarsWeb port
ports:
- "3000:3000"
- "3001:3001"
- "20200-20205:20200-20205"
- "30300-30305:30300-30305"
environment:
MYSQL_HOST: "172.25.0.2"
MYSQL_ROOT_PASSWORD: ""
MYSQL_PORT: 3306
REBUILD: "false"
INET: eth0
SLAVE: "false"
restart: always
volumes:
- ~/app/tars/framework:/data/tars
- /etc/localtime:/etc/localtime
depends_on:
- tars-mysql