-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (54 loc) · 1.19 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
55
56
57
58
59
60
61
version: '3.8'
services:
mongo:
image: mongo:latest
container_name: mongo
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
redis:
image: "redis:latest"
container_name: redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
server:
build:
context: ./apps/Server # Adjusted path to match the correct casing
dockerfile: Dockerfile
container_name: server
depends_on:
- redis
- mongo
environment:
- MONGO_URL=mongodb://mongo:27017/your_database_name
- REDIS_URL=redis://redis:6379
ports:
- "8080:8080"
worker:
build:
context: ./apps/Worker # Adjusted path to match the correct casing
dockerfile: Dockerfile
container_name: worker
depends_on:
- redis
- server
environment:
- REDIS_URL=redis://redis:6379
client:
build:
context: ./apps/Client # Adjusted path to match the correct casing
dockerfile: Dockerfile
container_name: client
depends_on:
- server
ports:
- "5173:5173" # Adjust port if necessary for client app
networks:
my-network:
driver: bridge
volumes:
redis-data:
mongo-data: