Files
templates/blueprints/rybbit/docker-compose.yml
Khiet Tam Nguyen f55f521dd2 fix(blueprint): rybbit v1.2.0 (#160)
* fix(blueprint): rybbit v1.0, no more /api stripping

Release notes:
- https://github.com/rybbit-io/rybbit/releases/tag/v1.0.0

Migration guide:
- https://www.rybbit.io/docs/v1-migration

* fix(blueprint): rybbit /health -> /api/health in v1.0.0

* docs(blueprint): notes on rybbit domain

* fix(blueprint): use version tag 1.0.0 in docker compose

* fix(blueprint): bump clickhouse and postgres versions for rybbit

* fix(blueprint): remote clickhouse config.d volume

* fix(blueprint): remove network configurations

* docs(blueprint): rybbit CORS typo

* docs(blueprint): rybbit only supports HTTPS

* feat(blueprint): rybbit clickhouse config mounted, bump versions

* chore(blueprint): bump rybbit version in meta.json

* deps: bump rybbit to v1.2.0
2025-06-19 22:23:44 -06:00

95 lines
2.7 KiB
YAML

# https://www.rybbit.io/docs/self-hosting-advanced
# NOTE: there are two sample HTTP traefik domain entries created:
# - rybbit_backend (port 3001, path /api),
# - rybbit_client (port 3002, path /)
#
# You should treat these as placeholders - Rybbit only supports HTTPS.
#
# You should also update the `BASE_URL` environment variable when
# updating the domain entries with your custom domain.
services:
rybbit_clickhouse:
image: clickhouse/clickhouse-server:25.5
volumes:
- clickhouse_data:/var/lib/clickhouse
- ../files/clickhouse_config:/etc/clickhouse-server/config.d
environment:
- CLICKHOUSE_DB=${CLICKHOUSE_DB}
- CLICKHOUSE_USER=${CLICKHOUSE_USER}
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD}
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:8123/ping",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped
rybbit_postgres:
image: postgres:17.5
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
rybbit_backend:
image: ghcr.io/rybbit-io/rybbit-backend:v1.2.0
environment:
- NODE_ENV=production
- CLICKHOUSE_HOST=http://rybbit_clickhouse:8123
- CLICKHOUSE_DB=${CLICKHOUSE_DB}
- CLICKHOUSE_USER=${CLICKHOUSE_USER}
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD}
- POSTGRES_HOST=rybbit_postgres
- POSTGRES_PORT=5432
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET}
- BASE_URL=${BASE_URL}
- DISABLE_SIGNUP=${DISABLE_SIGNUP}
depends_on:
rybbit_clickhouse:
condition: service_healthy
rybbit_postgres:
condition: service_started
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3001/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped
rybbit_client:
image: ghcr.io/rybbit-io/rybbit-client:v1.2.0
environment:
- NODE_ENV=production
- NEXT_PUBLIC_BACKEND_URL=${BASE_URL}
- NEXT_PUBLIC_DISABLE_SIGNUP=${DISABLE_SIGNUP}
depends_on:
- rybbit_backend
restart: unless-stopped
volumes:
clickhouse_data:
postgres_data: