2
Fork 0
Our own Supabase Docker Compose files, slightly modified to meet our needs without anything else.
  • TypeScript 71.3%
  • Elixir 26.2%
  • Shell 2.5%
Find a file
2026-03-11 21:36:49 +01:00
scripts feat: add pooler database 2025-12-02 23:57:48 +01:00
volumes feat: add pooler database 2025-12-02 23:57:48 +01:00
.env.example feat: add pooler database 2025-12-02 23:57:48 +01:00
.gitignore docs: autogenerate env 2025-11-27 20:39:36 +01:00
bun.lock docs: autogenerate env 2025-11-27 20:39:36 +01:00
compose.yaml feat: add pooler database 2025-12-02 23:57:48 +01:00
package.json docs: autogenerate env 2025-11-27 20:39:36 +01:00
README.md docs: translate to english 2026-03-11 21:36:49 +01:00

Supabase

What is exposed?

  • POSTGRES_PORT (default to 5432)
  • POOLER_PROXY_PORT_TRANSACTION (default to 6543, use this one instead of POSTGRES_PORT for serverless)
  • KONG_HTTP_PORT (default to 8000)

They're all configurable in the .env file, check the example one.

Deploy with caddy (preferred)

# /etc/caddy/Caddyfile
dev.throwdown.live {
	request_body {
		max_size 50MB
	}

	reverse_proxy localhost:8000 {
		header_up Host {host}
		header_up X-Real-IP {remote_host}
		header_up X-Forwarded-For {remote_host}
		header_up X-Forwarded-Proto {scheme}
	}
}

Deploy with nginx

# /etc/nginx/sites-enabled/dev.throwdown.live
server {
	listen 80;
	listen [::]:80;
	server_name dev.throwdown.live;

  client_max_body_size 50M;

	location / {
		proxy_pass http://localhost:8000;
		proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header X-Forwarded-Proto $scheme;
	}
}

You have to generate a SSL certificate using certbot.

Generate new variables

bun run scripts/generate-env.mts dev
bun run scripts/generate-env.mts prod