mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
82 lines
2.4 KiB
YAML
82 lines
2.4 KiB
YAML
version: '3.6'
|
|
services:
|
|
kong:
|
|
container_name: supabase-kong
|
|
build:
|
|
context: ./kong
|
|
environment:
|
|
KONG_DECLARATIVE_CONFIG: /var/lib/kong/kong.yml
|
|
KONG_PLUGINS: request-transformer,cors,key-auth,http-log
|
|
ports:
|
|
- 8000:8000/tcp
|
|
- 8443:8443/tcp
|
|
auth:
|
|
container_name: supabase-auth
|
|
image: supabase/gotrue:latest
|
|
ports:
|
|
- '9999:9999'
|
|
environment:
|
|
GOTRUE_JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-long
|
|
GOTRUE_JWT_EXP: 3600
|
|
GOTRUE_JWT_DEFAULT_GROUP_NAME: authenticated
|
|
GOTRUE_DB_DRIVER: postgres
|
|
DB_NAMESPACE: auth
|
|
API_EXTERNAL_URL: localhost
|
|
GOTRUE_API_HOST: 0.0.0.0
|
|
PORT: 9999
|
|
GOTRUE_DISABLE_SIGNUP: "false"
|
|
GOTRUE_SITE_URL: localhost
|
|
GOTRUE_MAILER_AUTOCONFIRM: "true"
|
|
GOTRUE_LOG_LEVEL: DEBUG
|
|
GOTRUE_OPERATOR_TOKEN: super-secret-operator-token
|
|
DATABASE_URL: "postgres://postgres:postgres@db:5432/postgres?sslmode=disable"
|
|
depends_on:
|
|
- db
|
|
rest:
|
|
container_name: supabase-rest
|
|
image: postgrest/postgrest:latest
|
|
ports:
|
|
- '3000:3000'
|
|
depends_on:
|
|
- db
|
|
restart: always
|
|
environment:
|
|
PGRST_DB_URI: postgres://postgres:postgres@db:5432/postgres
|
|
PGRST_DB_SCHEMA: public
|
|
PGRST_DB_ANON_ROLE: postgres
|
|
PGRST_JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-long
|
|
realtime:
|
|
container_name: supabase-realtime
|
|
image: supabase/realtime:latest
|
|
ports:
|
|
- '4000:4000'
|
|
depends_on:
|
|
- db
|
|
restart: on-failure
|
|
environment:
|
|
DB_HOST: db
|
|
DB_NAME: postgres
|
|
DB_USER: postgres
|
|
DB_PASSWORD: postgres
|
|
DB_PORT: 5432
|
|
PORT: 4000
|
|
HOSTNAME: localhost
|
|
# Disable JWT Auth locally. The JWT_SECRET will be ignored.
|
|
SECURE_CHANNELS: 'false'
|
|
JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-long
|
|
db:
|
|
container_name: supabase-db
|
|
build:
|
|
context: ./postgres
|
|
ports:
|
|
- 5432:5432
|
|
command:
|
|
- postgres
|
|
- -c
|
|
- wal_level=logical
|
|
environment:
|
|
POSTGRES_DB: postgres
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_PORT: 5432
|