Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
|
@@ -2,16 +2,15 @@ FROM kong/kong-gateway:3.13.0.0
|
|
| 2 |
|
| 3 |
USER root
|
| 4 |
|
| 5 |
-
# ---------- Kong
|
| 6 |
ENV KONG_DATABASE=postgres \
|
| 7 |
-
KONG_PG_HOST=ep-proud-tree-a1vjucw4
|
| 8 |
KONG_PG_PORT=5432 \
|
| 9 |
KONG_PG_DATABASE=neondb \
|
| 10 |
KONG_PG_USER=neondb_owner \
|
| 11 |
KONG_PG_PASSWORD=${KONG_PG_PASSWORD} \
|
| 12 |
KONG_PG_SSL=on \
|
| 13 |
-
KONG_PG_SSL_VERIFY=off
|
| 14 |
-
KONG_PG_OPTIONS=endpoint=ep-proud-tree-a1vjucw4
|
| 15 |
|
| 16 |
# ---------- Kong Services ----------
|
| 17 |
ENV KONG_ADMIN_LISTEN=0.0.0.0:8001 \
|
|
@@ -22,4 +21,4 @@ ENV KONG_ADMIN_LISTEN=0.0.0.0:8001 \
|
|
| 22 |
|
| 23 |
EXPOSE 8000 8001 8002
|
| 24 |
|
| 25 |
-
CMD kong migrations bootstrap || true && kong start
|
|
|
|
| 2 |
|
| 3 |
USER root
|
| 4 |
|
| 5 |
+
# ---------- Kong DB (Neon DIRECT endpoint) ----------
|
| 6 |
ENV KONG_DATABASE=postgres \
|
| 7 |
+
KONG_PG_HOST=ep-proud-tree-a1vjucw4.ap-southeast-1.aws.neon.tech \
|
| 8 |
KONG_PG_PORT=5432 \
|
| 9 |
KONG_PG_DATABASE=neondb \
|
| 10 |
KONG_PG_USER=neondb_owner \
|
| 11 |
KONG_PG_PASSWORD=${KONG_PG_PASSWORD} \
|
| 12 |
KONG_PG_SSL=on \
|
| 13 |
+
KONG_PG_SSL_VERIFY=off
|
|
|
|
| 14 |
|
| 15 |
# ---------- Kong Services ----------
|
| 16 |
ENV KONG_ADMIN_LISTEN=0.0.0.0:8001 \
|
|
|
|
| 21 |
|
| 22 |
EXPOSE 8000 8001 8002
|
| 23 |
|
| 24 |
+
CMD kong migrations bootstrap || true && kong start
|