-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
54 lines (51 loc) · 1.01 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
version: '3.8'
services:
front:
container_name: frontend
build: ./frontend
user: node
environment:
- REACT_APP_DOMAIN=${REACT_APP_DOMAIN}
- REACT_APP_CLIENTID=${REACT_APP_CLIENTID}
- REACT_APP_URI=${REACT_APP_URI}
volumes:
- ./frontend:/app:cached
- /app/node_modules
ports:
- ${FRONT_PORT}:3000
networks:
- backend
deploy:
resources:
limits:
memory: 2048M
reservations:
memory: 1028M
api:
container_name: API
build: ./backend
volumes:
- ./backend:/app:cached
ports:
- ${BACK_PORT}:8000
networks:
- backend
deploy:
resources:
limits:
memory: 2048M
reservations:
memory: 1028M
bd-mongo:
container_name: mongodb
image: mongo:4.2
ports:
- ${MONGO_PORT}:27017
volumes:
- ./volumes/mongodb:/data/bd-mongo
restart: unless-stopped
networks:
- backend
networks:
backend:
driver: bridge