Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 42 additions & 51 deletions supabase/code/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ services:
interval: 5s
retries: 3
depends_on:
analytics:
db:
condition: service_healthy
environment:
STUDIO_PG_META_URL: http://meta:8080
Expand Down Expand Up @@ -56,7 +56,7 @@ services:
# https://github.com/supabase/supabase/issues/12661
- ./volumes/api/kong.yml:/home/kong/temp.yml:ro,z
depends_on:
analytics:
db:
condition: service_healthy
environment:
KONG_DATABASE: "off"
Expand Down Expand Up @@ -94,8 +94,6 @@ services:
db:
# Disable this if you are using an external Postgres database
condition: service_healthy
analytics:
condition: service_healthy
environment:
GOTRUE_API_HOST: 0.0.0.0
GOTRUE_API_PORT: 9999
Expand Down Expand Up @@ -163,8 +161,6 @@ services:
db:
# Disable this if you are using an external Postgres database
condition: service_healthy
analytics:
condition: service_healthy
environment:
PGRST_DB_URI: postgres://authenticator:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
PGRST_DB_SCHEMAS: ${PGRST_DB_SCHEMAS}
Expand All @@ -183,8 +179,6 @@ services:
db:
# Disable this if you are using an external Postgres database
condition: service_healthy
analytics:
condition: service_healthy
healthcheck:
test:
[
Expand Down Expand Up @@ -285,8 +279,6 @@ services:
db:
# Disable this if you are using an external Postgres database
condition: service_healthy
analytics:
condition: service_healthy
environment:
PG_META_PORT: 8080
PG_META_DB_HOST: ${POSTGRES_HOST}
Expand All @@ -301,7 +293,7 @@ services:
volumes:
- ./volumes/functions:/home/deno/functions:Z
depends_on:
analytics:
db:
condition: service_healthy
environment:
JWT_SECRET: ${JWT_SECRET}
Expand All @@ -313,44 +305,45 @@ services:
VERIFY_JWT: "${FUNCTIONS_VERIFY_JWT}"
command: [ "start", "--main-service", "/home/deno/functions/main" ]

analytics:
image: supabase/logflare:1.12.0
restart: unless-stopped
# Uncomment to use Big Query backend for analytics
# volumes:
# - type: bind
# source: ${PWD}/gcloud.json
# target: /opt/app/rel/logflare/bin/gcloud.json
# read_only: true
healthcheck:
test: [ "CMD", "curl", "http://localhost:4000/health" ]
timeout: 5s
interval: 5s
retries: 10
depends_on:
db:
# Disable this if you are using an external Postgres database
condition: service_healthy
environment:
LOGFLARE_NODE_HOST: 127.0.0.1
DB_USERNAME: supabase_admin
DB_DATABASE: _supabase
DB_HOSTNAME: ${POSTGRES_HOST}
DB_PORT: ${POSTGRES_PORT}
DB_PASSWORD: ${POSTGRES_PASSWORD}
DB_SCHEMA: _analytics
LOGFLARE_API_KEY: ${LOGFLARE_API_KEY}
LOGFLARE_SINGLE_TENANT: true
LOGFLARE_SUPABASE_MODE: true
LOGFLARE_MIN_CLUSTER_SIZE: 1

# Comment variables to use Big Query backend for analytics
POSTGRES_BACKEND_URL: postgresql://supabase_admin:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/_supabase
POSTGRES_BACKEND_SCHEMA: _analytics
LOGFLARE_FEATURE_FLAG_OVERRIDE: multibackend=true
# Uncomment to use Big Query backend for analytics
# GOOGLE_PROJECT_ID: ${GOOGLE_PROJECT_ID}
# GOOGLE_PROJECT_NUMBER: ${GOOGLE_PROJECT_NUMBER}
# ANALYTICS DESABILITADO - Comentado para economizar memória
# analytics:
# image: supabase/logflare:1.12.0
# restart: unless-stopped
# # Uncomment to use Big Query backend for analytics
# # volumes:
# # - type: bind
# # source: ${PWD}/gcloud.json
# # target: /opt/app/rel/logflare/bin/gcloud.json
# # read_only: true
# healthcheck:
# test: [ "CMD", "curl", "http://localhost:4000/health" ]
# timeout: 5s
# interval: 5s
# retries: 10
# depends_on:
# db:
# # Disable this if you are using an external Postgres database
# condition: service_healthy
# environment:
# LOGFLARE_NODE_HOST: 127.0.0.1
# DB_USERNAME: supabase_admin
# DB_DATABASE: _supabase
# DB_HOSTNAME: ${POSTGRES_HOST}
# DB_PORT: ${POSTGRES_PORT}
# DB_PASSWORD: ${POSTGRES_PASSWORD}
# DB_SCHEMA: _analytics
# LOGFLARE_API_KEY: ${LOGFLARE_API_KEY}
# LOGFLARE_SINGLE_TENANT: true
# LOGFLARE_SUPABASE_MODE: true
# LOGFLARE_MIN_CLUSTER_SIZE: 1
#
# # Comment variables to use Big Query backend for analytics
# POSTGRES_BACKEND_URL: postgresql://supabase_admin:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/_supabase
# POSTGRES_BACKEND_SCHEMA: _analytics
# LOGFLARE_FEATURE_FLAG_OVERRIDE: multibackend=true
# # Uncomment to use Big Query backend for analytics
# # GOOGLE_PROJECT_ID: ${GOOGLE_PROJECT_ID}
# # GOOGLE_PROJECT_NUMBER: ${GOOGLE_PROJECT_NUMBER}

# Comment out everything below this point if you are using an external Postgres database
db:
Expand Down Expand Up @@ -449,8 +442,6 @@ services:
depends_on:
db:
condition: service_healthy
analytics:
condition: service_healthy
environment:
PORT: 4000
POSTGRES_PORT: ${POSTGRES_PORT}
Expand Down