Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (65 loc) · 1.82 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (65 loc) · 1.82 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
services:
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: openhinotes
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- hinotes-internal
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
db:
condition: service_healthy
networks:
- hinotes-internal
environment:
DATABASE_URL: postgresql+asyncpg://postgres:${POSTGRES_PASSWORD:-postgres}@db:5432/openhinotes
SECRET_KEY: ${SECRET_KEY:-change-me-in-production-use-a-long-random-string}
VOXHUB_API_URL: ${VOXHUB_API_URL:-http://voxhub:8000}
VOXHUB_MODEL: ${VOXHUB_MODEL:-large-v3}
VOXHUB_VERIFY_SSL: ${VOXHUB_VERIFY_SSL:-true}
LLM_API_URL: ${LLM_API_URL:-http://host.docker.internal:11434/v1}
LLM_API_KEY: ${LLM_API_KEY:-}
LLM_MODEL: ${LLM_MODEL:-gpt-3.5-turbo}
LLM_VERIFY_SSL: ${LLM_VERIFY_SSL:-true}
ADMIN_EMAIL: ${ADMIN_EMAIL:-admin@openhinotes.local}
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-admin}
CORS_ORIGINS: '["*"]'
volumes:
- uploads_data:/app/uploads
frontend:
container_name: hinotes-frontend
build:
context: ./frontend
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
- backend
networks:
- hinotes-internal
- proxy-net
environment:
- SITE_HOST=${SITE_HOST:-localhost}
- HMR_CLIENT_PORT=${HMR_CLIENT_PORT:-}
volumes:
postgres_data:
uploads_data:
networks:
hinotes-internal:
name: hinotes-internal
driver: bridge
proxy-net:
external: true