From 460b9929940351b6c848d47116ac2a0201755a60 Mon Sep 17 00:00:00 2001 From: Matt <63170914+matas0@users.noreply.github.com> Date: Wed, 14 Aug 2024 15:00:22 +0400 Subject: [PATCH] feat: Added Windmill template --- public/svgs/windmill.svg | 29 ++++++++ templates/compose/windmill.yaml | 115 ++++++++++++++++++++++++++++++++ 2 files changed, 144 insertions(+) create mode 100644 public/svgs/windmill.svg create mode 100644 templates/compose/windmill.yaml diff --git a/public/svgs/windmill.svg b/public/svgs/windmill.svg new file mode 100644 index 000000000..2b06716f9 --- /dev/null +++ b/public/svgs/windmill.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + diff --git a/templates/compose/windmill.yaml b/templates/compose/windmill.yaml new file mode 100644 index 000000000..e5af84e39 --- /dev/null +++ b/templates/compose/windmill.yaml @@ -0,0 +1,115 @@ +# documentation: https://www.windmill.dev/docs/ +# slogan: Windmill is a developer platform to build production-grade multi-steps automations and internal apps.\ +# info: Login as admin@windmill.dev / changeme to setup the instance & accounts and give yourself super-admin privileges. +# tags: windmill,workflow,automation,developer,platform +# logo: svgs/windmill.svg +# port: 8000 + +version: "3.7" + +services: + db: + image: postgres:16 + shm_size: 1g + restart: unless-stopped + volumes: + - db_data:/var/lib/postgresql/data + environment: + POSTGRES_PASSWORD: $SERVICE_PASSWORD_WINDMILL_POSTGRES + POSTGRES_DB: windmill + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 10s + timeout: 5s + retries: 5 + + windmill_server: + image: ghcr.io/windmill-labs/windmill:main + pull_policy: always + restart: unless-stopped + environment: + - DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_WINDMILL_POSTGRES@db/windmill + - MODE=server + - BASE_URL=$SERVICE_FQDN_WINDMILL + depends_on: + db: + condition: service_healthy + volumes: + - worker_logs:/tmp/windmill/logs + + windmill_worker_1: + image: ghcr.io/windmill-labs/windmill:main + pull_policy: always + restart: unless-stopped + environment: + - DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_WINDMILL_POSTGRES@db/windmill + - MODE=worker + - WORKER_GROUP=default + depends_on: + db: + condition: service_healthy + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - worker_dependency_cache:/tmp/windmill/cache + - worker_logs:/tmp/windmill/logs + + windmill_worker_2: + image: ghcr.io/windmill-labs/windmill:main + pull_policy: always + restart: unless-stopped + environment: + - DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_WINDMILL_POSTGRES@db/windmill + - MODE=worker + - WORKER_GROUP=default + depends_on: + db: + condition: service_healthy + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - worker_dependency_cache:/tmp/windmill/cache + - worker_logs:/tmp/windmill/logs + + windmill_worker_3: + image: ghcr.io/windmill-labs/windmill:main + pull_policy: always + restart: unless-stopped + environment: + - DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_WINDMILL_POSTGRES@db/windmill + - MODE=worker + - WORKER_GROUP=default + depends_on: + db: + condition: service_healthy + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - worker_dependency_cache:/tmp/windmill/cache + - worker_logs:/tmp/windmill/logs + + windmill_worker_native: + image: ghcr.io/windmill-labs/windmill:main + pull_policy: always + restart: unless-stopped + environment: + - DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_WINDMILL_POSTGRES@db/windmill + - MODE=worker + - WORKER_GROUP=native + - NUM_WORKERS=8 + - SLEEP_QUEUE=200 + depends_on: + db: + condition: service_healthy + volumes: + - worker_logs:/tmp/windmill/logs + + lsp: + image: ghcr.io/windmill-labs/windmill-lsp:latest + pull_policy: always + restart: unless-stopped + volumes: + - lsp_cache:/root/.cache + +volumes: + db_data: + worker_dependency_cache: + worker_logs: + lsp_cache: \ No newline at end of file