-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
116 lines (110 loc) · 2.74 KB
/
docker-compose.dev.yml
File metadata and controls
116 lines (110 loc) · 2.74 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
services:
auth-service:
build:
context: ./server/auth-service
target: builder
command: npm run dev
environment:
- MONGO_URI=mongodb://auth-db:27017/authdb
networks:
- gateway-net
- auth-net
develop:
watch:
- action: sync
path: ./server/auth-service/src
target: /app/src
- action: rebuild
path: ./server/auth-service/package.json
twin-service:
build:
context: ./server/twin-service
target: builder
command: npm run dev
environment:
- MONGO_URI=mongodb://twin-db:27017/twindb
networks:
- gateway-net
- twin-net
develop:
watch:
- action: sync
path: ./server/twin-service/src
target: /app/src
- action: rebuild
path: ./server/twin-service/package.json
twin-db:
ports:
- "27017:27017"
sensor-db:
ports:
- "27018:27017"
notification-service:
build:
context: ./server/notification-service
target: builder
command: npm run dev
environment:
- REDIS_URL=redis://redis:6379
- MONGO_URI=mongodb://notification-db:27017/notificationdb
- VAPID_PUBLIC_KEY=${VAPID_PUBLIC_KEY}
- VAPID_PRIVATE_KEY=${VAPID_PRIVATE_KEY}
depends_on:
- redis
networks:
- gateway-net
- notification-net
develop:
watch:
- action: sync
path: ./server/notification-service/src
target: /app/src
- action: rebuild
path: ./server/notification-service/package.json
agent-service:
build:
context: ./server/agent-service
command: npm run dev
environment:
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
- DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY}
- TWIN_SERVICE_URL=http://twin-service:3000
- AUTH_SERVICE_URL=http://auth-service:3000
networks:
- gateway-net
- twin-net
- auth-net
develop:
watch:
- action: sync
path: ./server/agent-service/src
target: /app/src
- action: rebuild
path: ./server/agent-service/package.json
client:
container_name: vue-client
build:
context: ./client
target: build-stage
args:
VITE_SERVER_URL: ${DEV_URL}:${SERVER_PORT}
VITE_VAPID_PUBLIC_KEY: ${VITE_VAPID_PUBLIC_KEY}
ports:
- "${CLIENT_PORT}:8080"
environment:
- PORT=${CLIENT_PORT}
command: npm run dev -- --host --port 8080
networks:
- gateway-net
depends_on:
- auth-service
- gateway
develop:
watch:
- action: sync
path: ./client/src
target: /app/src
ignore:
- node_modules/
- action: rebuild
path: ./client/package.json