mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-12-14 18:34:53 +01:00
77 lines
2.5 KiB
YAML
77 lines
2.5 KiB
YAML
services:
|
|
kestra:
|
|
command: server standalone --worker-thread=128
|
|
environment:
|
|
SECRET_MYPASSWORD: bDRjMWo0eWQzM0R1NWxv
|
|
SECRET_GITLAB: Z2xwYXQtdWotbi1lRWZUWTM5OFBFNHZLU1M=
|
|
KESTRA_CONFIGURATION: "datasources:\n postgres:\n url: jdbc:postgresql://postgres:5432/kestra\n\
|
|
\ driverClassName: org.postgresql.Driver\n username: kestra\n password:\
|
|
\ k3str4\nkestra:\n server:\n basicAuth:\n enabled: false\n \
|
|
\ username: \"jaydee@sectorq.eu\" # it must be a valid email address\n \
|
|
\ password: ${PASSWORD}\n repository:\n type: postgres\n storage:\n\
|
|
\ type: local\n local:\n basePath: \"/app/storage\"\n queue:\n\
|
|
\ type: postgres\n tasks:\n tmpDir:\n path: /tmp/kestra-wd/tmp\n\
|
|
\ url: http://localhost:8080/\n tutorial-flows:\n enabled: false\nmicronaut:\n\
|
|
\ server:\n cors:\n enabled: true\n"
|
|
image: ${DOCKER_REGISTRY:-}kestra/kestra:${KESTRA_VERSION:-latest}
|
|
ports:
|
|
- target: 8080
|
|
published: 8980
|
|
protocol: tcp
|
|
mode: ingress
|
|
- target: 8081
|
|
published: 8981
|
|
protocol: tcp
|
|
mode: ingress
|
|
user: root
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- data:/app/storage
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /tmp/kestra-wd:/tmp/kestra-wd
|
|
deploy:
|
|
labels:
|
|
com.centurylinklabs.watchtower.enable: 'true'
|
|
homepage.container: kestra-kestra-1
|
|
homepage.description: Automation
|
|
homepage.group: Infrastructure
|
|
homepage.href: https://${APPNAME}.sectorq.eu
|
|
homepage.icon: ${APPNAME}.png
|
|
homepage.name: Kestra
|
|
homepage.server: my-docker-swarm
|
|
homepage.weight: '1'
|
|
wud.display.icon: mdi:evernote
|
|
wud.watch: 'true'
|
|
wud.watch.digest: 'true'
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
postgres:
|
|
environment:
|
|
POSTGRES_DB: kestra
|
|
POSTGRES_PASSWORD: k3str4
|
|
POSTGRES_USER: kestra
|
|
healthcheck:
|
|
interval: 30s
|
|
retries: 10
|
|
test:
|
|
- CMD-SHELL
|
|
- pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}
|
|
timeout: 10s
|
|
image: ${DOCKER_REGISTRY:-}postgres:16
|
|
volumes:
|
|
- db:/var/lib/postgresql/data
|
|
deploy:
|
|
labels:
|
|
wud.watch: 'false'
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
volumes:
|
|
data:
|
|
driver: local
|
|
db:
|
|
driver: local
|