-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.06 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
services:
# Backend gRPC Server (Rust)
bs-backend:
build:
context: .
dockerfile: backend/Dockerfile
container_name: bs-backend
ports:
- "50051:50051"
environment:
- RUST_LOG=info
- DATABASE_URL=sqlite:///app/data/bufstack.db
volumes:
- bs-data:/app/data
networks:
- bs-network
restart: unless-stopped
healthcheck:
test: ["CMD", "grpc_health_probe", "-addr=:50051"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Frontend Nuxt Application (Bun)
bs-frontend:
build:
context: .
dockerfile: frontend/Dockerfile
container_name: bs-frontend
ports:
- "3000:3000"
environment:
- NODE_ENV=production
depends_on:
- bs-backend
networks:
- bs-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
bs-network:
driver: bridge
volumes:
bs-data:
driver: local