Last active
January 14, 2025 08:55
-
-
Save Karnak19/e08e3b2bd67d3eef1ebd384291766375 to your computer and use it in GitHub Desktop.
supabase minimal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.6' | |
services: | |
db: | |
image: supabase/postgres:latest | |
container_name: supabase-db | |
restart: unless-stopped | |
environment: | |
POSTGRES_DB: ${POSTGRES_DB} | |
POSTGRES_USER: ${POSTGRES_USER} | |
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | |
volumes: | |
- db-data:/var/lib/postgresql/data | |
ports: | |
- "5432:5432" | |
rest: | |
image: postgrest/postgrest:latest | |
container_name: supabase-rest | |
restart: unless-stopped | |
environment: | |
PGRST_DB_URI: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB} | |
PGRST_DB_SCHEMA: public | |
PGRST_DB_ANON_ROLE: anon | |
PGRST_JWT_SECRET: ${JWT_SECRET} | |
depends_on: | |
- db | |
ports: | |
- "3000:3000" | |
auth: | |
image: supabase/gotrue:latest | |
container_name: supabase-auth | |
restart: unless-stopped | |
environment: | |
GOTRUE_API_HOST: 0.0.0.0 | |
GOTRUE_API_PORT: 9999 | |
GOTRUE_DB_DRIVER: postgres | |
GOTRUE_DB_DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB} | |
GOTRUE_SITE_URL: ${SITE_URL} | |
GOTRUE_JWT_SECRET: ${JWT_SECRET} | |
depends_on: | |
- db | |
ports: | |
- "9999:9999" | |
kong: | |
image: kong:2.8.1 | |
container_name: supabase-kong | |
restart: unless-stopped | |
environment: | |
KONG_DATABASE: "off" | |
KONG_DECLARATIVE_CONFIG: /home/kong/kong.yml | |
volumes: | |
- ./volumes/api/kong.yml:/home/kong/kong.yml:ro | |
ports: | |
- "8000:8000" | |
- "8443:8443" | |
depends_on: | |
- rest | |
- auth | |
studio: | |
image: supabase/studio:latest | |
container_name: supabase-studio | |
restart: unless-stopped | |
environment: | |
SUPABASE_URL: http://localhost:8000 | |
SUPABASE_ANON_KEY: ${ANON_KEY} | |
SUPABASE_SERVICE_KEY: ${SERVICE_ROLE_KEY} | |
ports: | |
- "3001:3000" | |
depends_on: | |
- kong | |
volumes: | |
db-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment