mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-25 12:33:35 +00:00
125 lines
3.5 KiB
YAML
125 lines
3.5 KiB
YAML
# documentation: https://www.windmill.dev/docs/
|
|
# slogan: Windmill is a developer platform to build production-grade multi-steps automations and internal apps.
|
|
# tags: windmill,workflow,automation,developer,platform
|
|
# logo: svgs/windmill.svg
|
|
# port: 8000
|
|
|
|
services:
|
|
db:
|
|
image: postgres:16
|
|
shm_size: 1g
|
|
volumes:
|
|
- db_data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
|
- POSTGRES_DB=${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
|
|
environment:
|
|
- SERVICE_FQDN_WINDMILL_8000
|
|
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
|
|
- MODE=${MODE:-server}
|
|
- BASE_URL=$SERVICE_FQDN_WINDMILL
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
volumes:
|
|
- worker_logs:/tmp/windmill/logs
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
windmill_worker_1:
|
|
image: ghcr.io/windmill-labs/windmill:main
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
|
|
- MODE=${MODE:-worker}
|
|
- WORKER_GROUP=${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
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "exit 0"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
windmill_worker_2:
|
|
image: ghcr.io/windmill-labs/windmill:main
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
|
|
- MODE=${MODE:-worker}
|
|
- WORKER_GROUP=${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
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "exit 0"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
windmill_worker_3:
|
|
image: ghcr.io/windmill-labs/windmill:main
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
|
|
- MODE=${MODE:-worker}
|
|
- WORKER_GROUP=${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
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "exit 0"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
windmill_worker_native:
|
|
image: ghcr.io/windmill-labs/windmill:main
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
|
|
- MODE=${MODE:-worker}
|
|
- WORKER_GROUP=${WORKER_GROUP:-native}
|
|
- NUM_WORKERS=${NUM_WORKERS:-8}
|
|
- SLEEP_QUEUE=${SLEEP_QUEUE:-200}
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
volumes:
|
|
- worker_logs:/tmp/windmill/logs
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "exit 0"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
lsp:
|
|
image: ghcr.io/windmill-labs/windmill-lsp:latest
|
|
volumes:
|
|
- lsp_cache:/root/.cache
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "exit 0"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|