-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 919 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 919 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
services:
mongo:
image: mongo:7
restart: unless-stopped
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
backend:
build:
context: ./backend
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "4000:4000"
environment:
PORT: "4000"
MONGO_URI: mongodb://mongo:27017/ems
JWT_ACCESS_SECRET: dev-access-secret-change-me-32chars-min
JWT_REFRESH_SECRET: dev-refresh-secret-change-me-32chars-min
ACCESS_TOKEN_TTL: 15m
REFRESH_TOKEN_TTL: 7d
CORS_ORIGIN: http://localhost:3000
NODE_ENV: development
depends_on:
- mongo
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3000:3000"
environment:
BACKEND_URL: http://backend:4000
NODE_ENV: production
depends_on:
- backend
volumes:
mongo_data: