Update Dockerfile
Browse files- Dockerfile +11 -16
Dockerfile
CHANGED
|
@@ -1,33 +1,28 @@
|
|
| 1 |
FROM evoapicloud/evolution-api:v2.3.6
|
| 2 |
|
| 3 |
-
# 1. Hugging Face
|
| 4 |
ENV PORT=7860
|
| 5 |
ENV SERVER_PORT=7860
|
| 6 |
EXPOSE 7860
|
| 7 |
ENV SERVER_HOST=0.0.0.0
|
| 8 |
|
| 9 |
-
# 2. Security
|
| 10 |
ENV AUTH_MODE=apikey
|
| 11 |
ENV AUTH_API_KEY=Your_Super_Secret_Token_Here
|
| 12 |
-
|
| 13 |
-
# 3. Server URL (Exact Space URL)
|
| 14 |
ENV SERVER_URL=https://getzero11-whatsapp.hf.space
|
| 15 |
|
| 16 |
-
#
|
| 17 |
ENV DATABASE_ENABLED=true
|
| 18 |
ENV DATABASE_PROVIDER=postgresql
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
# FIX: Added ?pgbouncer=true&connection_limit=1 to satisfy the engine
|
| 22 |
-
ENV DATABASE_CONNECTION_URI="postgresql://postgres.DB-NAME:PASSWORD@aws-1-ap-northeast-1.pooler.supabase.com:5432/postgres?pgbouncer=true&connection_limit=1"
|
| 23 |
ENV DIRECT_URL="postgresql://postgres.DB-NAME:PASSWORD@aws-1-ap-northeast-1.pooler.supabase.com:5432/postgres?connection_limit=1"
|
| 24 |
|
| 25 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
ENV CACHE_LOCAL_ENABLED=true
|
| 27 |
ENV CACHE_REDIS_ENABLED=false
|
| 28 |
-
ENV
|
| 29 |
-
ENV DATABASE_CONNECTION_MAX_POOL_SIZE=2
|
| 30 |
-
|
| 31 |
-
# 6. WhatsApp Version Fix (Ensures QR shows up)
|
| 32 |
-
ENV CONFIG_SESSION_PHONE_VERSION=2.3000.1030415680
|
| 33 |
-
ENV WEB_VERSION=2.3000.1030415680
|
|
|
|
| 1 |
FROM evoapicloud/evolution-api:v2.3.6
|
| 2 |
|
| 3 |
+
# 1. Hugging Face
|
| 4 |
ENV PORT=7860
|
| 5 |
ENV SERVER_PORT=7860
|
| 6 |
EXPOSE 7860
|
| 7 |
ENV SERVER_HOST=0.0.0.0
|
| 8 |
|
| 9 |
+
# 2. Security & URL
|
| 10 |
ENV AUTH_MODE=apikey
|
| 11 |
ENV AUTH_API_KEY=Your_Super_Secret_Token_Here
|
|
|
|
|
|
|
| 12 |
ENV SERVER_URL=https://getzero11-whatsapp.hf.space
|
| 13 |
|
| 14 |
+
# 3. Database (Using Direct Port 5432 to avoid "s1" errors)
|
| 15 |
ENV DATABASE_ENABLED=true
|
| 16 |
ENV DATABASE_PROVIDER=postgresql
|
| 17 |
+
# We encode the '&' in your password as '%26'
|
| 18 |
+
ENV DATABASE_CONNECTION_URI="postgresql://postgres.DB-NAME:PASSWORD@aws-1-ap-northeast-1.pooler.supabase.com:5432/postgres?connection_limit=1"
|
|
|
|
|
|
|
| 19 |
ENV DIRECT_URL="postgresql://postgres.DB-NAME:PASSWORD@aws-1-ap-northeast-1.pooler.supabase.com:5432/postgres?connection_limit=1"
|
| 20 |
|
| 21 |
+
# 4. Mandatory QR Code Loop
|
| 22 |
+
ENV CONFIG_SESSION_PHONE_VERSION=2.3000.1030415680
|
| 23 |
+
ENV WEB_VERSION=2.3000.1030415680
|
| 24 |
+
|
| 25 |
+
# 5. Performance
|
| 26 |
ENV CACHE_LOCAL_ENABLED=true
|
| 27 |
ENV CACHE_REDIS_ENABLED=false
|
| 28 |
+
ENV DATABASE_CONNECTION_MAX_POOL_SIZE=1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|