-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.12 KB
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
services:
server:
build: ./server
container_name: wreddit_server
ports:
- "5000:5000"
volumes:
- ./server:/app
- /app/node_modules
environment:
# REVISED: The ?replicaSet=rs0 parameter MUST be removed.
- MONGO_URI=mongodb://mongo:27017/wreddit
- JWT_SECRET=dev-secret
- GEMINI_API_KEY=${GEMINI_API_KEY}
- REDIS_URL=redis://redis:6379
depends_on:
- mongo
- redis
client:
build: ./client
container_name: wreddit_client
ports:
- "5173:5173"
volumes:
- ./client:/app
- /app/node_modules
stdin_open: true
tty: true
mongo:
image: mongo:latest
container_name: wreddit_mongo
ports:
- "27018:27017"
volumes:
- mongo-data:/data/db
# REVISED: Removed replica set and healthcheck.
# This runs a simple, standalone MongoDB instance.
command: ["--bind_ip_all"]
redis:
image: redis:latest
container_name: wreddit_redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
command: ["redis-server", "--appendonly", "yes"]
volumes:
mongo-data:
redis-data: