-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
34 lines (34 loc) · 1.14 KB
/
docker-compose.yaml
File metadata and controls
34 lines (34 loc) · 1.14 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
services:
dify-sso:
image: lework/dify-sso
container_name: dify-sso
restart: always
environment:
# 服务配置
CONSOLE_WEB_URL: 'https://test-dify.test.com'
SECRET_KEY: 'sk-123456'
TENANT_ID: 'f9ea64ca-2a cf-44a7-aca0-123456'
EDITION: 'SELF_HOSTED'
ACCOUNT_DEFAULT_ROLE: 'editor'
ACCESS_TOKEN_EXPIRE_MINUTES: '900'
REFRESH_TOKEN_EXPIRE_DAYS: '30'
REFRESH_TOKEN_PREFIX: 'refresh_token:'
ACCOUNT_REFRESH_TOKEN_PREFIX: 'account_refresh_token:'
# OIDC配置
OIDC_CLIENT_ID: '123456'
OIDC_CLIENT_SECRET: '123456'
OIDC_DISCOVERY_URL: 'https://test-dify.sso.test.com/oidc/.well-known/openid-configuration'
OIDC_REDIRECT_URI: 'https://test-dify.test.com/console/api/enterprise/sso/oidc/callback'
OIDC_SCOPE: 'openid profile email roles'
OIDC_RESPONSE_TYPE: 'code'
# 数据库配置
DB_HOST: '127.0.0.1'
DB_PORT: '5432'
DB_DATABASE: 'dify'
DB_PASSWORD: '123456'
DB_USERNAME: 'dify_admin'
# Redis 配置
REDIS_DB: '13'
REDIS_HOST: '127.0.0.1'
REDIS_PORT: '6379'
REDIS_PASSWORD: '123456'