add(service): inngest one click service template
This commit is contained in:
parent
e7dff30b7c
commit
4d9ce2da6b
2 changed files with 67 additions and 0 deletions
BIN
public/svgs/inngest.png
Normal file
BIN
public/svgs/inngest.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
67
templates/compose/inngest.yaml
Normal file
67
templates/compose/inngest.yaml
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
# documentation: https://www.inngest.com/docs/self-hosting
|
||||
# slogan: Durable workflow engine for background jobs, queues and scheduled tasks.
|
||||
# category: automation
|
||||
# tags: queue, workflow, jobs, events, background, automation
|
||||
# logo: svgs/inngest.png
|
||||
# port: 8288
|
||||
|
||||
services:
|
||||
inngest:
|
||||
image: 'inngest/inngest:latest'
|
||||
command: 'inngest start --host 0.0.0.0'
|
||||
environment:
|
||||
- SERVICE_FQDN_INNGEST_8288
|
||||
- 'INNGEST_EVENT_KEY=${SERVICE_PASSWORD_EVENTKEY}'
|
||||
- 'INNGEST_SIGNING_KEY=${SERVICE_PASSWORD_SIGNINGKEY}'
|
||||
- 'INNGEST_POSTGRES_URI=postgres://inngest:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/inngest'
|
||||
- 'INNGEST_REDIS_URI=redis://redis:6379'
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- inngest
|
||||
- alpha
|
||||
- doctor
|
||||
- healthcheck
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
restart: unless-stopped
|
||||
postgres:
|
||||
image: 'postgres:17'
|
||||
environment:
|
||||
- POSTGRES_DB=inngest
|
||||
- POSTGRES_USER=inngest
|
||||
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
|
||||
volumes:
|
||||
- 'postgres-data:/var/lib/postgresql/data'
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- 'pg_isready -U inngest -d inngest'
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
restart: unless-stopped
|
||||
redis:
|
||||
image: 'redis:7-alpine'
|
||||
command: 'redis-server --appendonly yes'
|
||||
volumes:
|
||||
- 'redis-data:/data'
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- redis-cli
|
||||
- ping
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
postgres-data: null
|
||||
redis-data: null
|
||||
Loading…
Reference in a new issue