-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
New Service Kestra #4721
New Service Kestra #4721
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# documentation: https://kestra.io/docs/ | ||
# slogan: Open Source Declarative Orchestration Platform | ||
# tags: Orchestrate,Workflow,Automate,Schedule,Data Orchestration | ||
# logo: svgs/kestra.svg | ||
# port: 8080 | ||
|
||
services: | ||
postgres: | ||
container_name: kestra_postgres | ||
image: postgres:16 | ||
volumes: | ||
- kestra-postgres-data:/var/lib/postgresql/data | ||
healthcheck: | ||
test: | ||
- CMD-SHELL | ||
- 'pg_isready -U $${SERVICE_USER_POSTGRES} -d kestra' | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
environment: | ||
- POSTGRES_USER=${SERVICE_USER_POSTGRES} | ||
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES} | ||
- POSTGRES_DB=${POSTGRES_DB:-kestra} | ||
- PGDATA=/var/lib/postgresql/data/pgdata | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
kestra: | ||
container_name: kestra_server | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove name |
||
user: "root" | ||
image: kestra/kestra:latest | ||
pull_policy: always | ||
volumes: | ||
- kestra-data:/app/storage | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- /tmp/kestra-wd:/tmp/kestra-wd | ||
- type: bind | ||
source: ./application.template.yml | ||
target: /etc/config/application.template.yml | ||
isDirectory: false | ||
content: | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use our magic environment variables for secrets in the file |
||
datasources: | ||
postgres: | ||
url: jdbc:postgresql://postgres:5432/${DB_NAME} | ||
driverClassName: org.postgresql.Driver | ||
username: ${USER_POSTGRES} | ||
password: ${PASSWORD_POSTGRES} | ||
kestra: | ||
server: | ||
basicAuth: | ||
enabled: ${BASIC_AUTH} | ||
username: ${BASIC_AUTH_USER} | ||
password: ${BASIC_AUTH_PASSWORD} | ||
repository: | ||
type: postgres | ||
storage: | ||
type: local | ||
local: | ||
basePath: "app/storage" | ||
queue: | ||
type: postgres | ||
tasks: | ||
tempDir: | ||
path: /tmp/kestra-wd/tmp | ||
url: ${KESTRA_URL} | ||
- type: bind | ||
source: ./docker-entrypoint.sh | ||
target: /docker-entrypoint-mount.sh | ||
isDirectory: false | ||
content: | | ||
#!/bin/bash | ||
|
||
# Install envsubst if not already installed (for runtime installation) | ||
apt-get update && apt-get install -y gettext | ||
|
||
# Replace environment variables in the template with actual values | ||
envsubst < /etc/config/application.template.yml > /etc/config/application.yml | ||
|
||
|
||
# Start Kestra with the newly generated configuration file | ||
/app/kestra server standalone --config /etc/config/application.yml | ||
environment: | ||
- SERVICE_FQDN_KESTRA_8080 | ||
- PASSWORD_POSTGRES=${SERVICE_PASSWORD_POSTGRES} | ||
- USER_POSTGRES=${SERVICE_USER_POSTGRES} | ||
- DB_NAME=${POSTGRES_DB} | ||
- KESTRA_URL=${SERVICE_FQDN_KESTRA} | ||
- BASIC_AUTH=${BASIC_AUTH:-false} | ||
- BASIC_AUTH_USER=${BASIC_AUTH_EMAIL:[email protected]} # Change this to your 'VALID' email address | ||
- BASIC_AUTH_PASSWORD=${SERVICE_PASSWORD_KESTRA} | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "http://0.0.0.0:8081/health"] | ||
interval: 30s | ||
timeout: 10s | ||
retries: 5 | ||
start_period: 60s | ||
depends_on: | ||
postgres: | ||
condition: service_started | ||
entrypoint: ["sh", "-c", "cp /docker-entrypoint-mount.sh /docker-entrypoint.sh && chmod +x /docker-entrypoint.sh && /docker-entrypoint.sh"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
container_name
as Coolify will handle the name generation.