-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (74 loc) · 1.84 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (74 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
73
74
75
76
77
78
services:
dev:
build:
context: .
target: base
args:
INSTALL_CHROMIUM: ${INSTALL_CHROMIUM:-false}
INSTALL_PLAYWRIGHT_BROWSERS: ${INSTALL_PLAYWRIGHT_BROWSERS:-false}
command: ['bun', 'x', 'rsbuild', 'dev']
restart: unless-stopped
volumes:
- .:/app
- node_modules:/app/node_modules
ports:
- '3000:3000'
- '6006:6006'
- '${PLAYWRIGHT_TRACE_PORT:-9323}:${PLAYWRIGHT_TRACE_PORT:-9323}'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://${WEBSITE_DOMAIN}:${DEV_PORT}']
interval: 15s
timeout: 30s
retries: 5
start_period: 90s
networks:
- crm-network
mockoon:
build:
context: .
dockerfile: Mockoon.Dockerfile
ports:
- '${MOCKOON_PORT:-8080}:8080'
restart: unless-stopped
healthcheck:
test: ['CMD', 'wget', '-q', 'http://localhost:8080/api/users', '-O', '-']
networks:
- crm-network
apollo:
build:
context: .
dockerfile: Apollo.Dockerfile
env_file:
- .env
ports:
- '${GRAPHQL_PORT:-4000}:${GRAPHQL_PORT:-4000}'
restart: unless-stopped
healthcheck:
# Apollo Server 4 returns HTTP 400 for GET /graphql without a query, and the image
# ships wget (busybox) but not curl. POST a tiny query so the check reflects real health.
test:
[
'CMD',
'wget',
'-q',
'-O',
'/dev/null',
'--header=Content-Type: application/json',
'--post-data={"query":"{__typename}"}',
'http://localhost:${GRAPHQL_PORT:-4000}/${GRAPHQL_API_PATH:-graphql}',
]
networks:
- crm-network
rca:
profiles: [tools]
build:
context: .
target: rca
volumes:
- .:/app
networks:
crm-network:
external: true
name: crm-network
volumes:
node_modules: