-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 911 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (37 loc) · 911 Bytes
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
services:
web:
build:
context: .
dockerfile: Dockerfile
container_name: crosscode-web
restart: always
ports:
- "3000:3000"
env_file:
- apps/web/.env
environment:
- NODE_ENV=production
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
tunnel-server:
build:
context: .
dockerfile: packages/tunnel-server/Dockerfile
container_name: crosscode-tunnel
restart: always
ports:
- "3100:3100"
env_file:
- packages/tunnel-server/.env
environment:
- NODE_ENV=production
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3100/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s