-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (60 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
62 lines (60 loc) · 1.49 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
services:
orchestrator:
build:
context: .
dockerfile: apps/orchestrator/Dockerfile.dev
env_file: .env.local
ports:
- "${ORCHESTRATOR_PORT:-4000}:4000"
volumes:
- .:/workspace
- /workspace/node_modules
environment:
- NODE_ENV=development
- HOST=0.0.0.0
- ORCHESTRATOR_PORT=4000
command: npx nx serve orchestrator
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
studio:
build:
context: .
dockerfile: apps/studio/Dockerfile.dev
env_file: .env.local
ports:
- "${STUDIO_PORT:-4001}:4001"
volumes:
- .:/workspace
- /workspace/node_modules
environment:
- NODE_ENV=development
- WATCHPACK_POLLING=true
- CHOKIDAR_USEPOLLING=true
- HOSTNAME=0.0.0.0
- PORT=4001
- NEXT_PUBLIC_ORCHESTRATOR_URL=http://orchestrator:4000
- NEXT_PUBLIC_ORCHESTRATOR_WS_URL=ws://orchestrator:4000
command: npx nx dev studio
depends_on:
orchestrator:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4001"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
playwright:
image: mcr.microsoft.com/playwright:v1.52.0-noble
profiles:
- e2e
volumes:
- .:/workspace
working_dir: /workspace
depends_on:
studio:
condition: service_healthy