Fix: Windmill

This commit is contained in:
peaklabs-dev
2024-10-07 18:36:25 +02:00
parent 8d543d40cc
commit bb8a276aa9

View File

@@ -1,22 +1,18 @@
# documentation: https://www.windmill.dev/docs/ # documentation: https://www.windmill.dev/docs/
# slogan: Windmill is a developer platform to build production-grade multi-steps automations and internal apps.\ # 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 # tags: windmill,workflow,automation,developer,platform
# logo: svgs/windmill.svg # logo: svgs/windmill.svg
# port: 8000 # port: 8000
version: "3.7"
services: services:
db: db:
image: postgres:16 image: postgres:16
shm_size: 1g shm_size: 1g
restart: unless-stopped
volumes: volumes:
- db_data:/var/lib/postgresql/data - db_data:/var/lib/postgresql/data
environment: environment:
POSTGRES_PASSWORD: $SERVICE_PASSWORD_POSTGRES - POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
POSTGRES_DB: windmill - POSTGRES_DB=${POSTGRES_DB:-windmill}
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"] test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s interval: 10s
@@ -28,7 +24,7 @@ services:
environment: environment:
- SERVICE_FQDN_WINDMILL_8000 - SERVICE_FQDN_WINDMILL_8000
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill - DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
- MODE=server - MODE=${MODE:-server}
- BASE_URL=$SERVICE_FQDN_WINDMILL - BASE_URL=$SERVICE_FQDN_WINDMILL
depends_on: depends_on:
db: db:
@@ -40,8 +36,8 @@ services:
image: ghcr.io/windmill-labs/windmill:main image: ghcr.io/windmill-labs/windmill:main
environment: environment:
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill - DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
- MODE=worker - MODE=${MODE:-worker}
- WORKER_GROUP=default - WORKER_GROUP=${WORKER_GROUP:-default}
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy
@@ -54,8 +50,8 @@ services:
image: ghcr.io/windmill-labs/windmill:main image: ghcr.io/windmill-labs/windmill:main
environment: environment:
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill - DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
- MODE=worker - MODE=${MODE:-worker}
- WORKER_GROUP=default - WORKER_GROUP=${WORKER_GROUP:-default}
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy
@@ -68,8 +64,8 @@ services:
image: ghcr.io/windmill-labs/windmill:main image: ghcr.io/windmill-labs/windmill:main
environment: environment:
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill - DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
- MODE=worker - MODE=${MODE:-worker}
- WORKER_GROUP=default - WORKER_GROUP=${WORKER_GROUP:-default}
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy
@@ -82,10 +78,10 @@ services:
image: ghcr.io/windmill-labs/windmill:main image: ghcr.io/windmill-labs/windmill:main
environment: environment:
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill - DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
- MODE=worker - MODE=${MODE:-worker}
- WORKER_GROUP=native - WORKER_GROUP=${WORKER_GROUP:-native}
- NUM_WORKERS=8 - NUM_WORKERS=${NUM_WORKERS:-8}
- SLEEP_QUEUE=200 - SLEEP_QUEUE=${SLEEP_QUEUE:-200}
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy