@@ -47,70 +47,70 @@ services:
4747 PGBOUNCER_IGNORE_STARTUP_PARAMETERS : " extra_float_digits, options"
4848 PGBOUNCER_STATS_USERS : postgres
4949
50- supavisor :
51- image : supabase/supavisor:1.1.23
52- depends_on :
53- multitenant_db :
54- condition : service_healthy
55- tenant_db :
56- condition : service_healthy
57- ports :
58- - 4000:4000
59- - 5452:5452
60- - 6543:6543
61- healthcheck :
62- test : ["CMD", "curl", "-f", "http://localhost:4000/api/health"]
63- interval : 2s
64- timeout : 10s
65- retries : 5
66- environment :
67- PORT : 4000
68- PROXY_PORT_SESSION : 5452
69- PROXY_PORT_TRANSACTION : 6543
70- DATABASE_URL : " ecto://postgres:postgres@multitenant_db:5432/postgres"
71- CLUSTER_POSTGRES : " true"
72- SECRET_KEY_BASE : " 12345678901234567890121234567890123456789012345678903212345678901234567890123456789032123456789012345678901234567890323456789032"
73- VAULT_ENC_KEY : " 12345678901234567890123456789032"
74- API_JWT_SECRET : " dev"
75- METRICS_JWT_SECRET : " dev"
76- REGION : " local"
77- ERL_AFLAGS : -proto_dist inet_tcp
78- command : sh -c "/app/bin/migrate && /app/bin/server"
79-
80- supavisor_setup :
81- image : supabase/supavisor:1.1.23
82- command : |
83- curl -X PUT \
84- "http://supavisor:4000/api/tenants/bjhaohmqunupljrqypxz" \
85- --header "Accept: application/json" \
86- --header "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJvbGUiOiJhbm9uIiwiaWF0IjoxNjQ1MTkyODI0LCJleHAiOjE5NjA3Njg4MjR9.M9jrxyvPLkUxWgOYSf5dNdJ8v_eRrq810ShFRT8N-6M" \
87- --header "Content-Type: application/json" \
88- --data-raw "{
89- \"tenant\": {
90- \"db_host\": \"tenant_db\",
91- \"db_port\": 5432,
92- \"db_database\": \"postgres\",
93- \"ip_version\": \"auto\",
94- \"require_user\": true,
95- \"upstream_ssl\": false,
96- \"enforce_ssl\": false,
97- \"default_max_clients\": 200,
98- \"default_pool_size\": 15,
99- \"users\": [
100- {
101- \"db_user\": \"postgres\",
102- \"db_password\": \"postgres\",
103- \"mode_type\": \"transaction\",
104- \"pool_size\": 15,
105- \"max_clients\": 200,
106- \"pool_checkout_timeout\": 5000
107- }
108- ]
109- }
110- }"
111- depends_on :
112- supavisor :
113- condition : service_healthy
50+ # supavisor:
51+ # image: supabase/supavisor:1.1.23
52+ # depends_on:
53+ # multitenant_db:
54+ # condition: service_healthy
55+ # tenant_db:
56+ # condition: service_healthy
57+ # ports:
58+ # - 4000:4000
59+ # - 5452:5452
60+ # - 6543:6543
61+ # healthcheck:
62+ # test: ["CMD", "curl", "-f", "http://localhost:4000/api/health"]
63+ # interval: 2s
64+ # timeout: 10s
65+ # retries: 5
66+ # environment:
67+ # PORT: 4000
68+ # PROXY_PORT_SESSION: 5452
69+ # PROXY_PORT_TRANSACTION: 6543
70+ # DATABASE_URL: "ecto://postgres:postgres@multitenant_db:5432/postgres"
71+ # CLUSTER_POSTGRES: "true"
72+ # SECRET_KEY_BASE: "12345678901234567890121234567890123456789012345678903212345678901234567890123456789032123456789012345678901234567890323456789032"
73+ # VAULT_ENC_KEY: "12345678901234567890123456789032"
74+ # API_JWT_SECRET: "dev"
75+ # METRICS_JWT_SECRET: "dev"
76+ # REGION: "local"
77+ # ERL_AFLAGS: -proto_dist inet_tcp
78+ # command: sh -c "/app/bin/migrate && /app/bin/server"
79+ #
80+ # supavisor_setup:
81+ # image: supabase/supavisor:1.1.23
82+ # command: |
83+ # curl -X PUT \
84+ # "http://supavisor:4000/api/tenants/bjhaohmqunupljrqypxz" \
85+ # --header "Accept: application/json" \
86+ # --header "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJvbGUiOiJhbm9uIiwiaWF0IjoxNjQ1MTkyODI0LCJleHAiOjE5NjA3Njg4MjR9.M9jrxyvPLkUxWgOYSf5dNdJ8v_eRrq810ShFRT8N-6M" \
87+ # --header "Content-Type: application/json" \
88+ # --data-raw "{
89+ # \"tenant\": {
90+ # \"db_host\": \"tenant_db\",
91+ # \"db_port\": 5432,
92+ # \"db_database\": \"postgres\",
93+ # \"ip_version\": \"auto\",
94+ # \"require_user\": true,
95+ # \"upstream_ssl\": false,
96+ # \"enforce_ssl\": false,
97+ # \"default_max_clients\": 200,
98+ # \"default_pool_size\": 15,
99+ # \"users\": [
100+ # {
101+ # \"db_user\": \"postgres\",
102+ # \"db_password\": \"postgres\",
103+ # \"mode_type\": \"transaction\",
104+ # \"pool_size\": 15,
105+ # \"max_clients\": 200,
106+ # \"pool_checkout_timeout\": 5000
107+ # }
108+ # ]
109+ # }
110+ # }"
111+ # depends_on:
112+ # supavisor:
113+ # condition: service_healthy
114114
115115 minio :
116116 image : minio/minio
0 commit comments