-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dify.yml
More file actions
100 lines (95 loc) · 2.27 KB
/
docker-compose.dify.yml
File metadata and controls
100 lines (95 loc) · 2.27 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
92
93
94
95
96
97
98
99
100
services:
# Dify API Service
dify-api:
image: langgenius/dify-api:0.6.13
restart: always
environment:
# Application Mode
MODE: api
# Database Configuration
DB_USERNAME: dify
DB_PASSWORD: dify
DB_HOST: dify-db
DB_PORT: 5432
DB_DATABASE: dify
# Redis Configuration
REDIS_HOST: dify-redis
REDIS_PORT: 6379
REDIS_DB: 0
# Security & URLs
SECRET_KEY: simple-cli-dify-secret-key
APP_WEB_URL: http://localhost:3003
# Model Providers (Placeholders)
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
DEEPSEEK_API_KEY: ${DEEPSEEK_API_KEY:-}
ports:
- "5001:5001"
depends_on:
- dify-db
- dify-redis
volumes:
- dify_data:/app/api/storage
# Dify Worker Service (Background Tasks)
dify-worker:
image: langgenius/dify-api:0.6.13
restart: always
environment:
MODE: worker
DB_USERNAME: dify
DB_PASSWORD: dify
DB_HOST: dify-db
DB_PORT: 5432
DB_DATABASE: dify
REDIS_HOST: dify-redis
REDIS_PORT: 6379
REDIS_DB: 0
SECRET_KEY: simple-cli-dify-secret-key
# Model Providers
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
DEEPSEEK_API_KEY: ${DEEPSEEK_API_KEY:-}
depends_on:
- dify-db
- dify-redis
volumes:
- dify_data:/app/api/storage
# Dify Web Interface
dify-web:
image: langgenius/dify-web:0.6.13
restart: always
environment:
CONSOLE_API_URL: http://localhost:5001
APP_API_URL: http://localhost:5001
SENTRY_DSN: ""
GA_ID: ""
ports:
- "3003:3000"
depends_on:
- dify-api
# PostgreSQL Database
dify-db:
image: postgres:15-alpine
restart: always
environment:
POSTGRES_DB: dify
POSTGRES_USER: dify
POSTGRES_PASSWORD: dify
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- dify_postgres:/var/lib/postgresql/data
ports:
- "5433:5432"
# Redis Cache
dify-redis:
image: redis:6-alpine
restart: always
volumes:
- dify_redis:/data
ports:
- "6380:6379"
command: redis-server --requirepass ""
volumes:
dify_data:
dify_postgres:
dify_redis: