-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 1.01 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
version: "3"
services:
node-app:
container_name: node-cont
image: login-app:new
restart: always
build: .
ports:
- "51005:51005"
networks:
- node-network
links:
- mongo
- mysql-service
mongo:
container_name: mongo_new
image: mongo
volumes:
- ./data:/data/db
ports:
- '27017:27017'
networks:
- node-network
mysql-service:
container_name: node-mysql
image: mysql:5.7
volumes:
- ./dbdata:/var/lib/mysql
ports:
- '3306:3306'
restart: always
environment:
- MYSQL_ROOT_HOST=root
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=backend_demo
networks:
- node-network
networks:
node-network:
driver: bridge