-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
46 lines (46 loc) · 1 KB
/
docker-compose.yaml
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
version: '3'
services:
mongo:
image: mongo
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo localhost:27017/test --quiet
volumes:
- ./database:/data/db
frontend:
build: frontend
ports:
- '3000:3000'
environment:
- REACT_APP_BACKEND_URI=${REACT_APP_BACKEND_URI}
volumes:
- /app/node_modules
- ./frontend:/app
depends_on:
- backend
backend:
build: backend
ports:
- '8080:8080'
environment:
- PORT=${PORT}
- MONGO_URI=${MONGO_URI}
- TEST_MONGO_URI=${TEST_MONGO_URI}
- TOKEN_SECRET=${TOKEN_SECRET}
- MAIL_HOST=${MAIL_HOST}
- MAIL_PORT=${MAIL_PORT}
- MAIL_USER=${MAIL_USER}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- MAIL_FROM=${MAIL_FROM}
volumes:
- /app/node_modules
- ./backend:/app
depends_on:
mongo:
condition: service_healthy
docs:
build: docs
ports:
- 4000:4000
volumes:
- /app/node_modules
- ./docs:/app