-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 907 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (46 loc) · 907 Bytes
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
version: "3"
services:
server:
build:
context: ./server/cmap
dockerfile: Dockerfile
container_name: cmap_server
ports:
- 8080:8080
networks:
- network-tier
restart: on-failure
tty: true
web:
container_name: cmap_web
build:
context: ./web
dockerfile: Dockerfile.prod
# ports:
# - 3000:3000
volumes:
- ./web:/web
- build_folder:/web/dist
- ./web/node_modules/:/web/node_modules
tty: true
nginx:
build:
dockerfile: Dockerfile
context: ./nginx
container_name: nginx
ports:
- "80:80"
restart: unless-stopped
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf
- build_folder:/var/www/web
depends_on:
- web
- server
networks:
- network-tier
networks:
network-tier:
driver: bridge
volumes:
build_folder: null