-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
220 lines (214 loc) · 5.62 KB
/
docker-compose.dev.yml
File metadata and controls
220 lines (214 loc) · 5.62 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
services:
web-dev:
build:
context: .
dockerfile: apps/web/Dockerfile.dev
container_name: openbeam-web-dev
environment:
NODE_ENV: development
NEXT_PUBLIC_SERVER_URL: http://localhost:3000
WATCHPACK_POLLING: "true"
ports:
- "3001:3001"
depends_on:
server-dev:
condition: service_started
volumes:
- ./apps/web:/app/apps/web
- ./packages:/app/packages
- /app/node_modules
- /app/apps/web/node_modules
- /app/apps/web/.next
develop:
watch:
- action: sync
path: ./apps/web/src
target: /app/apps/web/src
ignore:
- node_modules/
- action: sync
path: ./packages
target: /app/packages
ignore:
- node_modules/
- dist/
- action: rebuild
path: ./apps/web/package.json
restart: unless-stopped
server-dev:
build:
context: .
dockerfile: apps/server/Dockerfile.dev
container_name: openbeam-server-dev
environment:
NODE_ENV: development
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/openbeam
REDIS_URL: redis://redis:6379
VESPA_URL: http://vespa:8080
TEMPORAL_ADDRESS: temporal:7233
CORS_ORIGIN: http://localhost:3001
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET:-super-secret-key}
BETTER_AUTH_URL: http://localhost:3000
JWT_SECRET: ${JWT_SECRET:-jwt-secret-key}
LOG_LEVEL: debug
ports:
- "3000:3000"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
vespa:
condition: service_healthy
temporal:
condition: service_healthy
volumes:
- ./apps/server:/app/apps/server
- ./packages:/app/packages
- /app/node_modules
- /app/apps/server/node_modules
develop:
watch:
- action: sync+restart
path: ./apps/server/src
target: /app/apps/server/src
ignore:
- node_modules/
- action: sync+restart
path: ./packages
target: /app/packages
ignore:
- node_modules/
- dist/
- action: rebuild
path: ./apps/server/package.json
restart: unless-stopped
worker-dev:
build:
context: .
dockerfile: apps/worker/Dockerfile.dev
container_name: openbeam-worker-dev
environment:
NODE_ENV: development
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/openbeam
REDIS_URL: redis://redis:6379
VESPA_URL: http://vespa:8080
TEMPORAL_ADDRESS: temporal:7233
ENGINE_URL: http://engine:8000
GCS_ENDPOINT: http://minio:9000
GCS_ACCESS_KEY_ID: ${MINIO_ROOT_USER:-minioadmin}
GCS_SECRET_ACCESS_KEY: ${MINIO_ROOT_PASSWORD:-minioadmin}
GCS_BUCKET: ${S3_BUCKET:-openbeam-files}
LOG_LEVEL: debug
ports:
- "9091:9091"
- "9092:9092"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
vespa:
condition: service_healthy
temporal:
condition: service_healthy
volumes:
- ./apps/worker:/app/apps/worker
- ./packages:/app/packages
- /app/node_modules
- /app/apps/worker/node_modules
develop:
watch:
- action: sync+restart
path: ./apps/worker/src
target: /app/apps/worker/src
ignore:
- node_modules/
- action: sync+restart
path: ./packages
target: /app/packages
ignore:
- node_modules/
- dist/
- action: rebuild
path: ./apps/worker/package.json
restart: unless-stopped
daemon-dev:
build:
context: .
dockerfile: apps/daemon/Dockerfile.dev
container_name: openbeam-daemon-dev
environment:
NODE_ENV: development
OPENBEAM_HOME: /data
OPENBEAM_LOG: debug
OPENBEAM_LOG_FORMAT: pretty
ports:
- "6868:6868"
volumes:
- ./apps/daemon:/app/apps/daemon
- ./packages:/app/packages
- daemon-data:/data
- /app/node_modules
- /app/apps/daemon/node_modules
develop:
watch:
- action: sync+restart
path: ./apps/daemon/src
target: /app/apps/daemon/src
ignore:
- node_modules/
- action: sync+restart
path: ./packages
target: /app/packages
ignore:
- node_modules/
- dist/
- action: rebuild
path: ./apps/daemon/package.json
restart: unless-stopped
engine-dev:
build:
context: .
dockerfile: apps/engine/Dockerfile.dev
container_name: openbeam-engine-dev
environment:
PYTHONUNBUFFERED: 1
LOG_LEVEL: debug
REDIS_URL: redis://redis:6379
ports:
- "8000:8000"
- "8001:8001"
depends_on:
redis:
condition: service_healthy
volumes:
- ./apps/engine:/app
- /app/.venv
develop:
watch:
- action: sync+restart
path: ./apps/engine/src
target: /app/src
- action: rebuild
path: ./apps/engine/pyproject.toml
restart: unless-stopped
bot-dev:
build:
context: .
dockerfile: apps/bot/Dockerfile
target: deps
container_name: openbeam-bot-dev
command: bun run --hot apps/bot/src/index.ts
environment:
NODE_ENV: development
BOT_PORT: "3005"
ports:
- "3005:3005"
volumes:
- ./apps/bot:/app/apps/bot
- ./packages:/app/packages
- /app/node_modules
restart: unless-stopped
volumes:
daemon-data: