-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (43 loc) · 953 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (43 loc) · 953 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
version: '3.9'
services:
mongo:
image: mongo:6
restart: unless-stopped
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
server:
build: ./server
restart: unless-stopped
environment:
PORT: 5000
MONGODB_URI: mongodb://mongo:27017/madlen-casestudy
CLIENT_URL: http://localhost:3000
JWT_SECRET: dev_secret_key_change
# Provide GEMINI_API_KEY via local .env or environment; keep empty in versioned compose
GEMINI_API_KEY: ""
SEED_ON_START: "true"
RESET_DB: "false"
depends_on:
- mongo
ports:
- "5000:5000"
volumes:
- ./server:/app
- /app/node_modules
client:
build: ./client
restart: unless-stopped
environment:
NEXT_PUBLIC_API_URL: http://localhost:5000
PORT: 3000
depends_on:
- server
ports:
- "3000:3000"
volumes:
- ./client:/app
- /app/node_modules
volumes:
mongo_data: