-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (43 loc) · 959 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
version: "3.7"
services:
db-nosql:
container_name: todolist_mongo
image: mongo
# ports:
# - "9094:27017"
db-nosql-express:
container_name: todolist_mongo_express
image: mongo-express
ports:
- "9076:8081"
environment:
- ME_CONFIG_MONGODB_SERVER=db-nosql
backend:
container_name: todolist_backend
build:
context: ./backend
dockerfile: ./Dockerfile
volumes:
- "/usr/src/app"
- "/usr/src/app/node_modules"
ports:
- "9077:8081"
links:
- db-nosql
environment:
- BACKEND_PORT=8081
- SALT_HASH=10
- JWT_SECRET="pmcarmo_secret_key"
- MONGO_CONNECTOR=mongodb://db-nosql:27017/todolist
frontend:
container_name: todolist_frontend
build:
context: ./frontend
dockerfile: ./Dockerfile
volumes:
- "/usr/src/app"
- "/usr/src/app/node_modules"
ports:
- "9078:80"
links:
- backend