-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (54 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
57 lines (54 loc) · 1.18 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
services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
args:
- BUILDKIT_INLINE_CACHE=1
ports:
- "3060:3060" # Signaling server
- "3051:3051" # DHT relay
environment:
- NODE_ENV=production
- PORT=3060
- DHT_RELAY_PORT=3051
networks:
- pigeon-net
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3060/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
- pigeon-logs:/app/logs
- pigeon-data:/app/.hyperdrive-storage
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
args:
- BUILDKIT_INLINE_CACHE=1
ports:
- "5173:5173"
environment:
- VITE_API_TARGET=http://backend:3060
depends_on:
backend:
condition: service_healthy
networks:
- pigeon-net
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5173/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
pigeon-net:
driver: bridge
volumes:
pigeon-logs:
pigeon-data: