-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·58 lines (52 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
executable file
·58 lines (52 loc) · 1.06 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
# Run docker-compose build
# Run docker-compose up
# Live long and prosper
version: '3.1'
services:
webapp:
container_name: webapp
image: nginx
build:
context: .
dockerfile: .docker/nginx.dockerfile
volumes:
- ./client:/usr/share/nginx/html
ports:
- "80:80"
- "443:443"
depends_on:
- node
networks:
- app-network
node:
container_name: nodeapp
image: nodeapp
restart: always
build:
context: .
dockerfile: .docker/node.dockerfile
volumes:
- ./server:/var/www/node
environment:
- NODE_ENV=development
- MONGODB_URI=mongodb://db/customermanager
ports:
- "4215:4215"
depends_on:
- db
networks:
- app-network
#No authentication is provided here - JUST A DEMO! That would absolutely
#be needed for a "real" application
db:
container_name: db
image: mongo
volumes:
- ./data:/data/db
ports:
- "27017:27017"
networks:
- app-network
networks:
app-network:
driver: bridge