Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add docker compose example #238

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions examples/docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: '3.9'
services:
db:
image: postgres
restart: always
shm_size: 128mb
environment:
POSTGRES_PASSWORD: example
nats:
image: nats
command: "--js"
migrator:
image: kannon
command: "migrate main --config /kannon.yaml"
volumes:
- ./kannon.yaml:/kannon.yaml
restart: on-failure
depends_on:
- db
kannon:
image: kannon
restart: always
command: "--run-api --config /kannon.yaml --run-bounce --run-dispatcher --run-verifier --run-sender --run-smtp"
volumes:
- ./kannon.yaml:/kannon.yaml
ports:
- "8080:8080"
depends_on:
- db
- nats
- migrator
10 changes: 10 additions & 0 deletions examples/docker-compose/kannon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
nats_url: nats://nats:4222
debug: false
database_url: postgresql://postgres:example@db:5432/postgres?sslmode=disable

api:
port: 50051

sender:
hostname: kannon.ludusrusso.dev
max_jobs: 100
Loading