-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (46 loc) · 1022 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
version: '3'
services:
mysql:
build:
context: .
dockerfile: docker/mysql/Dockerfile
command: mysqld --default-authentication-plugin=mysql_native_password --sql_mode=""
ports:
- "3307:3306"
networks:
- backend
mongo:
build:
context: .
dockerfile: docker/mongo/Dockerfile
ports:
- "27017:27017"
networks:
- backend
nodejs:
build:
context: .
dockerfile: docker/nodejs/Dockerfile
environment:
- MYSQL_DATABASE=ServerModel
- MYSQL_HOST=mysql
- MYSQL_USER=root
- MYSQL_PASSWORD=root
- MYSQL_PORT=3306
- MONGO_HOST=mongo
volumes:
- ./sql:/docker-entrypoint-initdb.d
# volumes:
# - $PWD/model:/app/model
# - $PWD/config.toml:/app/config.toml
# - $PWD/main.go:/ServerModel/
ports:
- "8501:8501"
entrypoint: /entrypoint.sh -d mysql:3306 -c 'yarn start';
links:
- mysql
- mongo
networks:
- backend
networks:
backend: