-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 890 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 890 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
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy
restart: always
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
nginx:
image: nginx
restart: always
expose:
- "80"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
environment:
- VIRTUAL_HOST=dev2.local.sma,www.dev2.local.sma
depends_on:
- nodeappi
nodeappi:
restart: always
build: ./server
command: ["npm", "start"]
container_name: node-api
depends_on:
- db
db:
container_name: mongo
image: mongo
expose:
- "27017"
volumes:
- mongodata:/data/db
volumes:
mongodata: