-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
56 lines (53 loc) · 1.44 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
56 lines (53 loc) · 1.44 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
include:
- docker-compose.temporal.yml
services:
api:
init: true
depends_on:
temporal:
condition: service_healthy
worker:
condition: service_healthy
image: node:24.15.0-slim
networks:
- main
environment:
- OUTPUT_API_PORT=3001
- OUTPUT_CATALOG_ID=main
- TEMPORAL_ADDRESS=temporal:7233
command: node /app/api/src/index.js
ports:
- '3001:3001'
volumes:
- ./:/app
worker:
init: true
depends_on:
temporal:
condition: service_healthy
image: node:24.15.0-slim
healthcheck:
test: [ 'CMD-SHELL', 'cd ./test_workflows && npx output-healthcheck' ]
interval: 3s
timeout: 10s
retries: 20
start_period: 30s
networks:
- main
env_file: './test_workflows/.env'
environment:
- COREPACK_ENABLE_DOWNLOAD_PROMPT=0
- TEST_API_URL=http://api:3001
- TEMPORAL_ADDRESS=temporal:7233
- OUTPUT_CATALOG_ID=main
- OUTPUT_REDIS_URL=redis://redis:6379
- OUTPUT_TRACE_LOCAL_ON=true
- OUTPUT_TRACE_HOST_PATH=${PWD}/test_workflows/logs
- NODE_OPTIONS=${NODE_OPTIONS:---max-old-space-size=4096}
command: sh -c "corepack enable && pnpm install --frozen-lockfile && npm run build:packages && cd ./test_workflows && npm run output:worker:watch"
working_dir: /app
volumes:
- ./:/app
- worker_node_modules:/app/node_modules
volumes:
worker_node_modules: