-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (50 loc) · 926 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (50 loc) · 926 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
56
version: "3.8"
services:
mongodb:
container_name: mongo
image: mongo:6.0
restart: unless-stopped
volumes:
- mongo_data:/data/db
ports:
- "27017:27017"
networks:
- app-network
redis:
container_name: redis
image: redis:7.0.5-alpine
restart: unless-stopped
ports:
- "6379:6379"
networks:
- app-network
backend:
container_name: backend
build: ./backend
restart: unless-stopped
env_file:
- ./backend/.env.docker
ports:
- "5000:5000"
depends_on:
- mongodb
- redis
networks:
- app-network
frontend:
container_name: frontend
build: ./frontend
restart: unless-stopped
env_file:
- ./frontend/.env.docker
ports:
- "5173:5173"
depends_on:
- backend
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
mongo_data: