-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (51 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
53 lines (51 loc) · 1.26 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 service
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: transcriber-backend
restart: unless-stopped
ports:
- "3050:3001"
environment:
- NODE_ENV=production
- PORT=3001
- WHISPER_API_URL=http://192.168.1.100:9019
- GEMINI_API_KEY=${GEMINI_API_KEY}
env_file:
- ./backend/.env
volumes:
# Volume for logs
- ./backend/logs:/app/logs
networks:
- transcriber-network
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3001/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: transcriber-frontend
restart: unless-stopped
environment:
- BACKEND_URL=${BACKEND_URL:-/api}
ports:
- "4206:80"
networks:
- transcriber-network
depends_on:
- backend
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1/"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
networks:
transcriber-network:
driver: bridge