1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/kestra/docker-compose.yml
2024-06-20 07:49:49 +08:00

61 lines
1.5 KiB
YAML

version: "3.8"
services:
kestra:
image: kestra/kestra:latest-full
command: server standalone --worker-thread=128
ports:
- "8080:8080"
- "8081:8081"
volumes:
- ./data/kestra/storage:/app/storage
- ./data/kestra/tmp:/app/tmp
- /var/run/docker.sock:/var/run/docker.sock
environment:
KESTRA_CONFIGURATION: |
datasources:
postgres:
url: "jdbc:postgresql://postgres:5432/kestra"
driverClassName: "org.postgresql.Driver"
username: "kestra"
password: "k3str4"
kestra:
url: http://localhost:8080/
server:
basic-auth:
enabled: false
username: "admin@example.com"
password: "admin"
repository:
type: postgres
storage:
type: local
local:
base-path: "/app/storage"
queue:
type: postgres
tasks:
tmp-dir:
path: "/app/tmp"
user: root
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:16-alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=kestra
- POSTGRES_USER=kestra
- POSTGRES_PASSWORD=k3str4
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 30s
timeout: 10s
retries: 10
restart: unless-stopped