-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
52 lines (48 loc) · 985 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
49
50
51
52
version: '3'
services:
backend:
build:
context: ./backend
container_name: backend
ports:
- "3030:3030"
environment:
- MONGO_URI=${DATABASE_URL}
command: node app.js
networks:
- mynetwork
frontend:
build:
context: ./front
environment:
- NODE_PATH=/usr/local/lib/node_modules
container_name: front
ports:
- "3000:3000"
networks:
- mynetwork
mongo:
image: mongo:latest
container_name: mongo
ports:
- "27017:27017"
volumes:
- ./data/db:/data/db
environment:
- MONGO_URI=${DATABASE_URL}
networks:
- mynetwork
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/backend.conf:/etc/nginx/conf.d/backend.conf
- ./nginx/front.conf:/etc/nginx/conf.d/front.conf
- ./front/build:/var/www/courseio.ru
networks:
- mynetwork
networks:
mynetwork: