fix: use KESTRA_CONFIGURATION inline like official compose

This commit is contained in:
2026-01-11 15:12:18 +00:00
parent 87ec2a011f
commit 0c9fd5469e

View File

@@ -18,19 +18,45 @@ services:
kestra: kestra:
image: kestra/kestra:latest image: kestra/kestra:latest
pull_policy: always
container_name: kestra container_name: kestra
network_mode: service:tailscale network_mode: service:tailscale
stop_grace_period: 6m
depends_on: depends_on:
tailscale: tailscale:
condition: service_started condition: service_started
command: server standalone command: server standalone
user: "root"
environment: environment:
- KESTRA_CONFIGURATION_FILE=/app/config/application.yaml KESTRA_CONFIGURATION: |
datasources:
postgres:
url: jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME}
driverClassName: org.postgresql.Driver
username: ${DB_USER}
password: ${DB_PASSWORD}
kestra:
server:
basic-auth:
enabled: true
username: ${KESTRA_ADMIN_USER}
password: ${KESTRA_ADMIN_PASSWORD}
repository:
type: postgres
storage:
type: local
local:
base-path: "/app/storage"
queue:
type: postgres
tasks:
tmp-dir:
path: /tmp/kestra-wd/tmp
url: https://kestra.taila5ad8.ts.net/
volumes: volumes:
- kestra-data:/app/storage - kestra-data:/app/storage
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /opt/kestra/config/application.yaml:/app/config/application.yaml:ro - /tmp/kestra-wd:/tmp/kestra-wd
user: "root"
restart: unless-stopped restart: unless-stopped
volumes: volumes: