Update Dockerfile for correct directory structure
Browse files- Dockerfile +22 -8
Dockerfile
CHANGED
|
@@ -128,28 +128,30 @@ ENV FLASK_APP=app.py \
|
|
| 128 |
PYTHONPATH=/app/api \
|
| 129 |
TZ=UTC \
|
| 130 |
NLTK_DATA=/usr/local/share/nltk_data \
|
|
|
|
| 131 |
DB_USERNAME=postgres \
|
| 132 |
DB_PASSWORD=difyai123456 \
|
| 133 |
DB_HOST=localhost \
|
| 134 |
DB_PORT=5432 \
|
| 135 |
DB_DATABASE=dify \
|
|
|
|
| 136 |
REDIS_HOST=localhost \
|
| 137 |
REDIS_PORT=6379 \
|
| 138 |
REDIS_DB=0 \
|
| 139 |
-
|
|
|
|
| 140 | |
|
|
|
|
|
|
|
|
|
| 141 |
STORAGE_TYPE=local \
|
| 142 |
STORAGE_LOCAL_PATH=/app/api/storage \
|
|
|
|
| 143 |
VECTOR_STORE=qdrant \
|
| 144 |
QDRANT_URL=http://localhost:6333 \
|
|
|
|
| 145 |
SECRET_KEY=your-secret-key \
|
| 146 |
SECURITY_PASSWORD_SALT=your-password-salt \
|
| 147 |
-
# SMTP configuration (commented out since we're using dummy mail)
|
| 148 |
-
# SMTP_SERVER=smtp.example.com \
|
| 149 |
-
# SMTP_PORT=587 \
|
| 150 |
-
# SMTP_USERNAME=your-username \
|
| 151 |
-
# SMTP_PASSWORD=your-password \
|
| 152 |
-
# SMTP_USE_TLS=true \
|
| 153 |
# Core configuration
|
| 154 |
EDITION=SELF_HOSTED \
|
| 155 |
DEPLOY_ENV=PRODUCTION \
|
|
@@ -162,7 +164,19 @@ ENV FLASK_APP=app.py \
|
|
| 162 |
# Allow demo mode
|
| 163 |
DEMO_MODE=false \
|
| 164 |
# Disable registration
|
| 165 |
-
DISABLE_REGISTRATION=false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
|
| 167 |
# Switch to the non-root user
|
| 168 |
USER user
|
|
|
|
| 128 |
PYTHONPATH=/app/api \
|
| 129 |
TZ=UTC \
|
| 130 |
NLTK_DATA=/usr/local/share/nltk_data \
|
| 131 |
+
# Database configuration
|
| 132 |
DB_USERNAME=postgres \
|
| 133 |
DB_PASSWORD=difyai123456 \
|
| 134 |
DB_HOST=localhost \
|
| 135 |
DB_PORT=5432 \
|
| 136 |
DB_DATABASE=dify \
|
| 137 |
+
# Redis configuration
|
| 138 |
REDIS_HOST=localhost \
|
| 139 |
REDIS_PORT=6379 \
|
| 140 |
REDIS_DB=0 \
|
| 141 |
+
# Mail configuration - Using resend as default
|
| 142 |
+
MAIL_TYPE=resend \
|
| 143 | |
| 144 |
+
MAIL_DEFAULT_SENDER_NAME=Dify \
|
| 145 |
+
MAIL_RESEND_API_KEY=null \
|
| 146 |
+
# Storage configuration
|
| 147 |
STORAGE_TYPE=local \
|
| 148 |
STORAGE_LOCAL_PATH=/app/api/storage \
|
| 149 |
+
# Vector store configuration
|
| 150 |
VECTOR_STORE=qdrant \
|
| 151 |
QDRANT_URL=http://localhost:6333 \
|
| 152 |
+
# Security configuration
|
| 153 |
SECRET_KEY=your-secret-key \
|
| 154 |
SECURITY_PASSWORD_SALT=your-password-salt \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
# Core configuration
|
| 156 |
EDITION=SELF_HOSTED \
|
| 157 |
DEPLOY_ENV=PRODUCTION \
|
|
|
|
| 164 |
# Allow demo mode
|
| 165 |
DEMO_MODE=false \
|
| 166 |
# Disable registration
|
| 167 |
+
DISABLE_REGISTRATION=false \
|
| 168 |
+
# Additional required configurations
|
| 169 |
+
CELERY_BROKER_URL=redis://localhost:6379/1 \
|
| 170 |
+
CELERY_RESULT_BACKEND=redis://localhost:6379/2 \
|
| 171 |
+
SENTRY_DSN="" \
|
| 172 |
+
SENTRY_TRACES_SAMPLE_RATE=1.0 \
|
| 173 |
+
SENTRY_PROFILES_SAMPLE_RATE=1.0 \
|
| 174 |
+
OAUTH_REDIRECT_PATH=/console/api/oauth/authorize \
|
| 175 |
+
OAUTH_REDIRECT_INDEX_PATH=/console/api/oauth/callback \
|
| 176 |
+
CONSOLE_URL=http://localhost:3000 \
|
| 177 |
+
SERVICE_API_URL=http://localhost:7860 \
|
| 178 |
+
APP_API_URL=http://localhost:7860 \
|
| 179 |
+
APP_WEB_URL=http://localhost:3000
|
| 180 |
|
| 181 |
# Switch to the non-root user
|
| 182 |
USER user
|