forked from snippone/snippone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 865 Bytes
/
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
47
48
version: "3"
volumes:
mongodb_data:
services:
nginx-proxy:
container_name: nginx-proxy-default
build:
context: ./proxy
restart: always
ports:
- 80:80
- 443:443
depends_on:
- vue-client
- express-server
vue-client:
container_name: vue-client-default
build:
context: ./client
volumes:
- ./client:/app
- /app/node_modules
depends_on:
- express-server
express-server:
container_name: express-server-default
build:
context: ./server
restart: on-failure
ports:
- 3000:3000
volumes:
- ./server:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- mongo-database
mongo-database:
container_name: mongo-database-default
image: mongo
ports:
- 27017:27017
volumes:
- mongodb_data:/data/db