Severian commited on
Commit
d09789a
·
verified ·
1 Parent(s): ae9f511

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile CHANGED
@@ -49,6 +49,12 @@ RUN pip install --no-cache-dir \
49
  grpcio-tools \
50
  pydantic-settings \
51
  pydantic \
 
 
 
 
 
 
52
  fastapi \
53
  uvicorn \
54
  python-multipart \
@@ -72,10 +78,23 @@ RUN ln -s /data/storage /app/api/storage
72
  ENV FLASK_APP=app.py \
73
  EDITION=SELF_HOSTED \
74
  DEPLOY_ENV=PRODUCTION \
 
 
 
 
 
75
  CONSOLE_API_URL=http://127.0.0.1:7860 \
76
  CONSOLE_WEB_URL=http://127.0.0.1:3000 \
77
  SERVICE_API_URL=http://127.0.0.1:7860 \
78
  APP_WEB_URL=http://127.0.0.1:3000 \
 
 
 
 
 
 
 
 
79
  HOME=/home/user \
80
  PATH=/home/user/.local/bin:$PATH \
81
  PYTHONPATH=/app/api \
 
49
  grpcio-tools \
50
  pydantic-settings \
51
  pydantic \
52
+ flask \
53
+ flask-cors \
54
+ flask-sqlalchemy \
55
+ flask-migrate \
56
+ flask-login \
57
+ flask-limiter \
58
  fastapi \
59
  uvicorn \
60
  python-multipart \
 
78
  ENV FLASK_APP=app.py \
79
  EDITION=SELF_HOSTED \
80
  DEPLOY_ENV=PRODUCTION \
81
+ MODE=api \
82
+ LOG_LEVEL=INFO \
83
+ DEBUG=false \
84
+ FLASK_DEBUG=false \
85
+ SECRET_KEY=sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U \
86
  CONSOLE_API_URL=http://127.0.0.1:7860 \
87
  CONSOLE_WEB_URL=http://127.0.0.1:3000 \
88
  SERVICE_API_URL=http://127.0.0.1:7860 \
89
  APP_WEB_URL=http://127.0.0.1:3000 \
90
+ DB_USERNAME=postgres \
91
+ DB_PASSWORD=difyai123456 \
92
+ DB_HOST=db \
93
+ DB_PORT=5432 \
94
+ DB_DATABASE=dify \
95
+ REDIS_HOST=redis \
96
+ REDIS_PORT=6379 \
97
+ REDIS_PASSWORD=difyai123456 \
98
  HOME=/home/user \
99
  PATH=/home/user/.local/bin:$PATH \
100
  PYTHONPATH=/app/api \