-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathdocker-compose.yml
64 lines (56 loc) · 1.37 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "2"
services:
mongodb:
image: "mongo"
ports:
- "27017:27017"
environment:
- VIRTUAL_PORT=27017
backend:
build: ./backend/
expose:
- 6200
ports:
- "6200:6200"
volumes:
- ./backend/src:/app/src
environment:
- NODE_ENV=development
# - VIRTUAL_HOST=api.example.com,www.api.example.com
# - VIRTUAL_PORT=6200
# - LETSENCRYPT_HOST=api.example.com
depends_on:
- mongodb
- frontend
frontend:
build: ./frontend/
expose:
- 3000
ports:
- "3000:3000"
volumes:
- ./frontend/src:/app/src
- ./frontend/public:/app/public
environment:
- NODE_ENV=development
# - VIRTUAL_HOST=example.com,www.example.com
# - VIRTUAL_PORT=3000
# - LETSENCRYPT_HOST=example.com
# nginx-proxy:
# image: jwilder/nginx-proxy
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - "/etc/nginx/vhost.d"
# - "/usr/share/nginx/html"
# - "/var/run/docker.sock:/tmp/docker.sock:ro"
# - "/etc/nginx/certs"
# letsencrypt-nginx-proxy-companion:
# image: jrcs/letsencrypt-nginx-proxy-companion
# volumes:
# - "/var/run/docker.sock:/var/run/docker.sock:ro"
# volumes_from:
# - "nginx-proxy"