Hiren122 commited on
Commit
35a4fc3
·
verified ·
1 Parent(s): ccaae96

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 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=db.bwykptdnpighcqornamu.supabase.co \
8
+ KONG_PG_PORT=5432 \
9
+ KONG_PG_DATABASE=postgres \
10
+ KONG_PG_USER=postgres \
11
+ KONG_PG_PASSWORD=${KONG_PG_PASSWORD} \
12
+ KONG_PG_SSL=on \
13
+ KONG_PG_SSL_VERIFY=off
14
+
15
+ # ---------- Kong Admin & Proxy ----------
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 \
19
+ KONG_PROXY_LISTEN=0.0.0.0:8000 \
20
+ KONG_LOG_LEVEL=info
21
+
22
+ EXPOSE 8000 8001 8002
23
+
24
+ # ---------- Start Kong ----------
25
+ CMD kong migrations bootstrap || true && kong start