-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (50 loc) · 1019 Bytes
/
docker-compose.yml
File metadata and controls
55 lines (50 loc) · 1019 Bytes
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
version: "3.8"
services:
mongodb:
image: mongo:latest
restart: always
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
networks:
- app_network
environment:
- MONGO_INITDB_DATABASE=multi_tenant_db
backend:
build:
context: ./backend
dockerfile: Dockerfile
restart: always
ports:
- "5000:5000"
depends_on:
- mongodb
environment:
- NODE_ENV=production
- MONGO_URI=mongodb://mongodb:27017/multi_tenant_db
- JWT_SECRET=${JWT_SECRET}
- EMAIL_USER=${EMAIL_USER}
- EMAIL_PASSWORD=${EMAIL_PASSWORD}
- FRONTEND_URL=http://localhost
networks:
- app_network
volumes:
- backend_logs:/app/logs
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: always
ports:
- "80:80"
depends_on:
- backend
networks:
- app_network
networks:
app_network:
driver: bridge
volumes:
mongodb_data:
backend_logs: