-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (56 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
61 lines (56 loc) · 1.1 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3.8'
services:
redis:
restart: unless-stopped
image: "redis"
container_name: 'vmcontrol-redis'
hostname: redis
ports:
- "4060:6379"
networks:
- vmcontrol
front:
restart: unless-stopped
container_name: 'vmcontrol-front'
depends_on:
- vmcontrol
build:
context: ./front
dockerfile: Dockerfile
ports:
- 6020:3000
volumes:
- ./front:/app
# this will mount the node_modules folder for faster performance
- nodemodules:/app/node_modules
hostname: frontvm
networks:
- vmcontrol
vmcontrol:
restart: unless-stopped
container_name: 'vmcontrol-api'
depends_on:
- redis
build:
context: .
dockerfile: Dockerfile
dns:
- 8.8.8.8
volumes:
- ./tmp:/tmp
- ./server:/usr/src/app
# entrypoint: /usr/src/app/init.sh
ports:
- 5070:5000
hostname: vmcontrol
networks:
- vmcontrol
networks:
vmcontrol:
name: vmcontrol-net
driver: bridge
ipam:
config:
- subnet: 10.2.0.0/24
volumes:
nodemodules: