-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
54 lines (49 loc) · 1.68 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
54 lines (49 loc) · 1.68 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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB:-hrevolve}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
volumes:
- redis-data:/data
ollama:
image: ollama/ollama:latest
volumes:
- ollama-data:/root/.ollama
ports:
- "${OLLAMA_PORT:-11434}:11434"
api:
image: ${REGISTRY:-ghcr.io}/${IMAGE_NAMESPACE:?请在 .env 里设置 IMAGE_NAMESPACE(必须小写)}/hrevolve-api:${IMAGE_TAG:-latest}
environment:
ASPNETCORE_ENVIRONMENT: Production
Kestrel__BindAnyIP: "true"
Kestrel__HttpPort: "8080"
Kestrel__EnableHttps: "false"
Kestrel__EnableHttpsRedirection: "false"
ConnectionStrings__DefaultConnection: Host=postgres;Port=5432;Database=${POSTGRES_DB:-hrevolve};Username=${POSTGRES_USER:-postgres};Password=${POSTGRES_PASSWORD:-postgres}
ConnectionStrings__Redis: redis:6379,connectTimeout=500,syncTimeout=500,abortConnect=false
Jwt__Key: ${JWT_KEY}
Jwt__Issuer: ${JWT_ISSUER:-https://hrevolve.local}
Jwt__Audience: ${JWT_AUDIENCE:-https://hrevolve.local}
AI__Provider: Ollama
AI__Ollama__Endpoint: http://ollama:11434
Seed__Demo: ${SEED_DEMO:-false}
depends_on:
- postgres
- redis
- ollama
web:
image: ${REGISTRY:-ghcr.io}/${IMAGE_NAMESPACE:?请在 .env 里设置 IMAGE_NAMESPACE(必须小写)}/hrevolve-web:${IMAGE_TAG:-latest}
depends_on:
- api
ports:
- "${WEB_PORT:-8080}:80"
volumes:
postgres-data:
redis-data:
ollama-data: