mirror of
https://github.com/supabase/supabase.git
synced 2026-05-20 04:23:53 +08:00
The following were done: - Change set data in latest.sql to be consistent with documentation. - Set up simple frontend to test out @supabase/supabase-js. - Change docker-compose.yml to allow dockerization of frontend. This however is commented out for now.
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
version: '3'
|
|
services:
|
|
db:
|
|
build: ./postgres
|
|
ports:
|
|
- "6543:5432"
|
|
# env_file:
|
|
# - "./config/local/db.env"
|
|
environment:
|
|
POSTGRES_USER: supabase
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_PORT: 5432
|
|
rest:
|
|
image: postgrest/postgrest
|
|
depends_on:
|
|
- db
|
|
restart: always
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
PGRST_DB_URI: postgres://supabase:postgres@db:5432/supabase
|
|
PGRST_DB_SCHEMA: public
|
|
PGRST_DB_ANON_ROLE: supabase
|
|
kong:
|
|
build: ./kong
|
|
ports:
|
|
- "8000:8000/tcp"
|
|
- "8443:8443/tcp"
|
|
restart: on-failure
|
|
depends_on:
|
|
- rest
|
|
environment:
|
|
KONG_ADMIN_ACCESS_LOG: /dev/stdout
|
|
KONG_ADMIN_ERROR_LOG: /dev/stderr
|
|
KONG_PROXY_ACCESS_LOG: /dev/stdout
|
|
KONG_PROXY_ERROR_LOG: /dev/stderr
|
|
KONG_ADMIN_LISTEN: 0.0.0.0:8001
|
|
|
|
# frontend:
|
|
# build: ./frontend
|
|
# ports:
|
|
# - "3333:3000"
|
|
|
|
# realtime:
|
|
# image: supabase/realtime
|
|
# ports:
|
|
# - "4001:4000"
|
|
# environment:
|
|
# POSTGRES_USER: supabase
|
|
# POSTGRES_PASSWORD: postgres
|
|
# POSTGRES_PORT: 5432
|
|
|