Skip to content

Commit

Permalink
✨ Add podman / docker compose file (#222)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Montleon <jmontleo@redhat.com>
  • Loading branch information
jmontleon committed Jul 2, 2024
1 parent 85d39b8 commit bff90e0
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ lint:
ignore:
- linters: [ALL]
paths:
# Raising bad warnings about intentionally blank values
- compose.yaml
# Ignore generated files
- samples/analysis_reports/**
- samples/generated_output/**
Expand Down
39 changes: 39 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: "3.4"

x-common-variables: &common-variables
POSTGRES_USER: foo
POSTGRES_PASSWORD: bar
POSTGRES_DB: baz

services:
kai:
environment:
<<: *common-variables
LOGLEVEL: info
DEMO_MODE: False
NUM_WORKERS: 8
# Do not edit the variables below otherwise
# you risk committing keys to a public repo
# These lines will pass in the environment
# variables from your host system.
GENAI_KEY:
OPENAI_API_KEY:
OPENAI_API_BASE:
image: quay.io/konveyor/kai:latest
volumes:
- ${PWD}:/podman_compose:ro,z
ports:
- "8080:8080"
depends_on:
- kai_db
kai_db:
image: docker.io/pgvector/pgvector:pg15
environment: *common-variables
volumes:
- kai_db_data:/var/lib/postgresql/data:z
healthcheck:
test: ["CMD", "pg_isready", "-U", "$POSTGRES_USER"]
interval: 10s
start_period: 30s
volumes:
kai_db_data:

0 comments on commit bff90e0

Please sign in to comment.