Hiren122 commited on
Commit
517bf55
·
verified ·
1 Parent(s): eca84a0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -12
Dockerfile CHANGED
@@ -2,18 +2,17 @@ FROM kong/kong-gateway:3.13.0.0
2
 
3
  USER root
4
 
5
- # ---------- Kong Database Config (Supabase Postgres) ----------
6
- ENV KONG_DATABASE=postgres
7
- KONG_PG_HOST=ep-proud-tree-a1vjucw4-pooler.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=XXXX
12
- KONG_PG_SSL=on
13
- KONG_PG_SSL_VERIFY=off
14
 
15
-
16
- # ---------- Kong Admin & Proxy ----------
17
  ENV KONG_ADMIN_LISTEN=0.0.0.0:8001 \
18
  KONG_ADMIN_GUI_LISTEN=0.0.0.0:8002 \
19
  KONG_ADMIN_GUI_URL=http://localhost:8002 \
@@ -22,5 +21,4 @@ ENV KONG_ADMIN_LISTEN=0.0.0.0:8001 \
22
 
23
  EXPOSE 8000 8001 8002
24
 
25
- # ---------- Start Kong ----------
26
  CMD kong migrations bootstrap || true && kong start
 
2
 
3
  USER root
4
 
5
+ # ---------- Kong Database Config (Neon Postgres) ----------
6
+ ENV KONG_DATABASE=postgres \
7
+ KONG_PG_HOST=ep-proud-tree-a1vjucw4-pooler.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 \
17
  KONG_ADMIN_GUI_LISTEN=0.0.0.0:8002 \
18
  KONG_ADMIN_GUI_URL=http://localhost:8002 \
 
21
 
22
  EXPOSE 8000 8001 8002
23
 
 
24
  CMD kong migrations bootstrap || true && kong start