Update Dockerfile
Browse files- Dockerfile +11 -11
Dockerfile
CHANGED
|
@@ -1,30 +1,30 @@
|
|
| 1 |
FROM evoapicloud/evolution-api:v2.3.6
|
| 2 |
|
| 3 |
-
# Hugging Face
|
| 4 |
-
ENV PORT=7860
|
| 5 |
-
ENV SERVER_PORT=7860
|
| 6 |
ENV SERVER_HOST=0.0.0.0
|
| 7 |
-
|
|
|
|
| 8 |
|
| 9 |
# Auth
|
| 10 |
ENV AUTH_MODE=apikey
|
| 11 |
ENV AUTH_API_KEY=Your_Super_Secret_Token_Here
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
ENV SERVER_URL=
|
| 15 |
-
|
| 16 |
-
# Database (Supabase direct connection is OK)
|
| 17 |
ENV DATABASE_ENABLED=true
|
| 18 |
ENV DATABASE_PROVIDER=postgresql
|
| 19 |
ENV DATABASE_CONNECTION_URI="postgresql://postgres.DB-NAME:PASSWORD@aws-1-ap-northeast-1.pooler.supabase.com:5432/postgres?connection_limit=1"
|
| 20 |
ENV DIRECT_URL="postgresql://postgres.DB-NAME:PASSWORD@aws-1-ap-northeast-1.pooler.supabase.com:5432/postgres?connection_limit=1"
|
| 21 |
|
| 22 |
-
#
|
| 23 |
-
ENV CONFIG_SESSION_PHONE_VERSION=
|
| 24 |
ENV WEB_VERSION=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
# Chromium fixes for HF
|
| 27 |
-
ENV CHROME_ARGS="--no-sandbox --disable-setuid-sandbox --disable-dev-shm-usage"
|
| 28 |
|
| 29 |
# Performance
|
| 30 |
ENV CACHE_LOCAL_ENABLED=true
|
|
|
|
| 1 |
FROM evoapicloud/evolution-api:v2.3.6
|
| 2 |
|
| 3 |
+
# Hugging Face networking
|
|
|
|
|
|
|
| 4 |
ENV SERVER_HOST=0.0.0.0
|
| 5 |
+
ENV SERVER_PORT=7860
|
| 6 |
+
ENV SERVER_URL=
|
| 7 |
|
| 8 |
# Auth
|
| 9 |
ENV AUTH_MODE=apikey
|
| 10 |
ENV AUTH_API_KEY=Your_Super_Secret_Token_Here
|
| 11 |
|
| 12 |
+
# Database (Supabase – DIRECT connection)
|
|
|
|
|
|
|
|
|
|
| 13 |
ENV DATABASE_ENABLED=true
|
| 14 |
ENV DATABASE_PROVIDER=postgresql
|
| 15 |
ENV DATABASE_CONNECTION_URI="postgresql://postgres.DB-NAME:PASSWORD@aws-1-ap-northeast-1.pooler.supabase.com:5432/postgres?connection_limit=1"
|
| 16 |
ENV DIRECT_URL="postgresql://postgres.DB-NAME:PASSWORD@aws-1-ap-northeast-1.pooler.supabase.com:5432/postgres?connection_limit=1"
|
| 17 |
|
| 18 |
+
# WhatsApp session (CRITICAL)
|
|
|
|
| 19 |
ENV WEB_VERSION=
|
| 20 |
+
ENV CONFIG_SESSION_PHONE_VERSION=
|
| 21 |
+
ENV CONFIG_SESSION_PHONE_CLIENT=
|
| 22 |
+
ENV CONFIG_SESSION_AUTO_RECONNECT=false
|
| 23 |
+
ENV CONFIG_SESSION_PAIRING_CODE=true
|
| 24 |
+
ENV CONFIG_SESSION_QR_TIMEOUT=60000
|
| 25 |
|
| 26 |
# Chromium fixes for HF
|
| 27 |
+
ENV CHROME_ARGS="--no-sandbox --disable-setuid-sandbox --disable-dev-shm-usage --disable-gpu --single-process"
|
| 28 |
|
| 29 |
# Performance
|
| 30 |
ENV CACHE_LOCAL_ENABLED=true
|