feat(service): add sequin template (#6105)
This commit is contained in:

committed by
GitHub

parent
8332311999
commit
f06d80e80e
16
public/svgs/sequin.svg
Normal file
16
public/svgs/sequin.svg
Normal file
@@ -0,0 +1,16 @@
|
||||
<svg width="600" height="600" viewBox="0 0 600 600" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_79_7)">
|
||||
<rect width="600" height="600" fill="white"/>
|
||||
<rect width="600" height="600" fill="url(#paint0_linear_79_7)"/>
|
||||
<path d="M411 373.853C411 244.369 249.364 289.891 249.364 223.125C249.364 195.812 269.32 180.638 299.253 180.638C330.184 180.638 350.14 197.835 350.14 227.677H409.504C409.504 166.476 363.608 125 299.253 125C235.896 125 190.499 164.452 190.499 223.125C190.499 349.575 351.137 295.455 351.137 373.853C351.137 402.684 332.179 418.364 301.248 418.364C269.32 418.364 249.364 401.167 249.364 371.325H190C190 432.527 236.394 474 301.248 474C365.104 474 411 433.539 411 373.853Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_79_7" x1="300" y1="0" x2="300" y2="600" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#666666"/>
|
||||
<stop offset="1" stop-color="#343542"/>
|
||||
</linearGradient>
|
||||
<clipPath id="clip0_79_7">
|
||||
<rect width="600" height="600" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.0 KiB |
68
templates/compose/sequin.yaml
Normal file
68
templates/compose/sequin.yaml
Normal file
@@ -0,0 +1,68 @@
|
||||
# documentation: https://sequinstream.com/docs/
|
||||
# slogan: The fastest Postgres change data capture
|
||||
# tags: postgres, sync, data
|
||||
# logo: svgs/sequin.svg
|
||||
# port: 7376
|
||||
|
||||
services:
|
||||
sequin:
|
||||
image: sequin/sequin:latest
|
||||
environment:
|
||||
- SERVICE_FQDN_SEQUIN_7376
|
||||
- SERVER_HOST=${SERVICE_FQDN_SEQUIN}
|
||||
- PG_HOSTNAME=postgres
|
||||
- PG_DATABASE=${POSTGRES_DB:-sequin-db}
|
||||
- PG_PORT=5432
|
||||
- PG_USERNAME=${SERVICE_USER_POSTGRES}
|
||||
- PG_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
|
||||
- PG_POOL_SIZE=20
|
||||
- SECRET_KEY_BASE=${SERVICE_REALBASE64_64_SECRETKEY}
|
||||
- VAULT_KEY=${SERVICE_REALBASE64_VAULTKEY}
|
||||
- REDIS_URL=redis://redis:6379
|
||||
- CONFIG_FILE_PATH=/config/playground.yml
|
||||
- FEATURE_ACCOUNT_SELF_SIGNUP=${FEATURE_ACCOUNT_SELF_SIGNUP:-false}
|
||||
- SEQUIN_TELEMETRY_DISABLED=${SEQUIN_TELEMETRY_DISABLED:-false}
|
||||
- CRASH_REPORTING_DISABLED=${CRASH_REPORTING_DISABLED:-false}
|
||||
depends_on:
|
||||
redis:
|
||||
condition: service_started
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "http://localhost:7376/health"]
|
||||
|
||||
postgres:
|
||||
image: 'postgres:16'
|
||||
environment:
|
||||
- POSTGRES_DB=${POSTGRES_DB:-sequin-db}
|
||||
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
|
||||
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
|
||||
command:
|
||||
- postgres
|
||||
- '-c'
|
||||
- wal_level=logical
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- 'pg_isready -U ${SERVICE_USER_POSTGRES} -d sequin'
|
||||
interval: 10s
|
||||
timeout: 2s
|
||||
retries: 5
|
||||
start_period: 2s
|
||||
start_interval: 1s
|
||||
volumes:
|
||||
- 'postgres_data:/var/lib/postgresql/data'
|
||||
|
||||
redis:
|
||||
image: 'redis:7'
|
||||
command:
|
||||
- redis-server
|
||||
- '--port'
|
||||
- '6379'
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
volumes:
|
||||
- 'redis_data:/data'
|
Reference in New Issue
Block a user