Files
supabase/test/docker-compose.yml
Angelico 53e8a9f0cb Enhance Testing Suite
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.
2020-01-08 17:40:25 +08:00

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