-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
72 lines (68 loc) · 1.84 KB
/
docker-compose.dev.yml
File metadata and controls
72 lines (68 loc) · 1.84 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
networks:
talentsync-infra:
external: true
services:
api:
build:
context: .
dockerfile: apps/server/Dockerfile
target: development
container_name: uptime-api-dev
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- PORT=3000
- MONGODB_URI=mongodb://mongo:27017/uptimemonitor
- REDIS_URI=redis://redis:6379
- JWT_ACCESS_SECRET=dev-access-secret-change-me
- JWT_REFRESH_SECRET=dev-refresh-secret-change-me
- CORS_ORIGIN=http://localhost:5173
- APP_URL=http://localhost:5173
volumes:
- .:/app
- node_modules:/app/node_modules
command: sh -c "npm install && npm run dev --workspace=apps/server"
restart: unless-stopped
networks:
- default
- talentsync-infra
worker:
build:
context: .
dockerfile: apps/server/Dockerfile
target: development
container_name: uptime-worker-dev
environment:
- NODE_ENV=development
- MONGODB_URI=mongodb://mongo:27017/uptimemonitor
- REDIS_URI=redis://redis:6379
- JWT_ACCESS_SECRET=dev-access-secret-change-me
- JWT_REFRESH_SECRET=dev-refresh-secret-change-me
volumes:
- .:/app
- node_modules:/app/node_modules
command: sh -c "npm install && npm run worker:dev --workspace=apps/server"
restart: unless-stopped
networks:
- default
- talentsync-infra
client:
build:
context: .
dockerfile: apps/client/Dockerfile
target: development
container_name: uptime-client-dev
ports:
- "5173:5173"
environment:
- CHOKIDAR_USEPOLLING=true
volumes:
- .:/app
- node_modules:/app/node_modules
command: sh -c "npm install && npm run dev --workspace=apps/client -- --host 0.0.0.0"
restart: unless-stopped
networks:
- default
volumes:
node_modules: