forked from cmsc389T-fall21/cmsc389T-web-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (42 loc) · 1.07 KB
/
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
version: '3'
services:
nodejs:
#fill out the configuration here
build:
context: .
# built using custom Dockerfile
dockerfile: Dockerfile
# tagged with custom name
container_name: KO_Site
# If fails or crashes, restart container and try again
restart: unless-stopped
networks:
- app-network
#the nginx configuration is given below
#the website will run on localhost:80
webserver:
image: nginx:mainline-alpine
container_name: webserver
restart: unless-stopped
ports:
- "80"
volumes:
- web-root:/var/www/html
- ./nginx-conf:/etc/nginx/conf.d
depends_on:
- nodejs
networks:
- app-network
volumes:
web-root:
driver: local
driver_opts:
type: none
#fill out your absolute path to your folder here
# device: /absolute/path/to/web/template/folder
# device: C:/Users/12407/Desktop/cmsc389T/cmsc389T-web-template
device: C://Users//12407//Desktop//cmsc389T//cmsc389T-web-template
o: bind
networks:
app-network:
driver: bridge