Created
May 15, 2026 14:26
-
-
Save joram/95eae26e6573f3c4da3bddb0c1ccc9c1 to your computer and use it in GitHub Desktop.
VeilStream Proxy
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
| # Onboard your database here: https://app.veilstream.com/database/onboarding | |
| # Do the self-hosted method, and put your API key in here (probably via an env_file) | |
| services: | |
| db: | |
| image: postgres:16 | |
| environment: | |
| POSTGRES_USER: user | |
| POSTGRES_PASSWORD: password | |
| POSTGRES_DB: database | |
| ports: | |
| - "5435:5432" | |
| healthcheck: | |
| test: ["CMD-SHELL", "pg_isready -U user -d chinook -h localhost -p 5432"] | |
| interval: 5s | |
| timeout: 5s | |
| retries: 10 | |
| proxy: | |
| image: veilstream/veilstream-postgres-proxy:latest | |
| depends_on: | |
| db: | |
| condition: service_healthy | |
| environment: | |
| DATABASE_URI: postgres://user:password@db:5432/chinook?sslmode=disable | |
| VEILSTREAM_API_KEY: <populate from website> | |
| ports: | |
| - "5432:5432" | |
| healthcheck: | |
| test: ["CMD-SHELL", "curl --silent --fail http://localhost/healthz/ready || exit 1"] | |
| interval: 10s | |
| retries: 6 | |
| timeout: 5s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment