-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
91 lines (86 loc) · 2.53 KB
/
docker-compose.prod.yml
File metadata and controls
91 lines (86 loc) · 2.53 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
79
80
81
82
83
84
85
86
87
88
89
90
91
services:
postgres:
image: postgres:16-alpine
container_name: meetmemo-postgres
environment:
- POSTGRES_DB=meetmemo
- POSTGRES_USER=meetmemo
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme}
volumes:
- postgres_data:/var/lib/postgresql/data
- ./backend/migrations:/docker-entrypoint-initdb.d
networks:
- meetmemo-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U meetmemo"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
meetmemo-backend:
image: ghcr.io/notyusheng/meetmemo-backend:${IMAGE_TAG:-latest}
container_name: meetmemo-backend
volumes:
- audiofiles:/app/audiofiles
- logs:/app/logs
- transcripts:/app/transcripts
- summary:/app/summary
- exports:/app/exports
- whisper_cache:/root/.cache/whisper
- huggingface_cache:/root/.cache/huggingface
- torch_cache:/root/.cache/torch
runtime: nvidia
environment:
- HF_TOKEN=${HF_TOKEN:-CHANGEME}
- LLM_API_URL=${LLM_API_URL:-CHANGEME}
- LLM_MODEL_NAME=${LLM_MODEL_NAME:-CHANGEME}
- TIMEZONE_OFFSET=${TIMEZONE_OFFSET:-+8}
- WHISPER_MODEL_NAME=${WHISPER_MODEL_NAME:-turbo}
- COMPUTE_TYPE=${COMPUTE_TYPE:-float16}
- DATABASE_URL=postgresql://meetmemo:${POSTGRES_PASSWORD:-changeme}@postgres:5432/meetmemo
- PYTHONUNBUFFERED=1
- NVIDIA_VISIBLE_DEVICES=${NVIDIA_VISIBLE_DEVICES:-all}
# Required for PyAnnote models - newer PyTorch defaults to weights_only=True for security,
# but PyAnnote's pickled models require full unpickling. Only use with trusted model sources.
- TORCH_LOAD_WEIGHTS_ONLY=0
networks:
- meetmemo-network
depends_on:
postgres:
condition: service_healthy
meetmemo-frontend:
image: ghcr.io/notyusheng/meetmemo-frontend:${IMAGE_TAG:-latest}
container_name: meetmemo-frontend
# No external ports - accessed via nginx
depends_on:
- meetmemo-backend
networks:
- meetmemo-network
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
container_name: meetmemo-nginx
ports:
- "${HTTP_PORT:-80}:80"
- "${HTTPS_PORT:-443}:443"
depends_on:
- meetmemo-frontend
- meetmemo-backend
networks:
- meetmemo-network
restart: unless-stopped
volumes:
postgres_data:
audiofiles:
logs:
transcripts:
whisper_cache:
huggingface_cache:
torch_cache:
summary:
exports:
networks:
meetmemo-network:
name: meetmemo-network
driver: bridge