Skip to content

Commit bb8a276

Browse files
committed
Fix: Windmill
1 parent 8d543d4 commit bb8a276

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

templates/compose/windmill.yaml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
# documentation: https://www.windmill.dev/docs/
2-
# slogan: Windmill is a developer platform to build production-grade multi-steps automations and internal apps.\
3-
# info: Login as [email protected] / changeme to setup the instance & accounts and give yourself super-admin privileges.
2+
# slogan: Windmill is a developer platform to build production-grade multi-steps automations and internal apps.
43
# tags: windmill,workflow,automation,developer,platform
54
# logo: svgs/windmill.svg
65
# port: 8000
76

8-
version: "3.7"
9-
107
services:
118
db:
129
image: postgres:16
1310
shm_size: 1g
14-
restart: unless-stopped
1511
volumes:
1612
- db_data:/var/lib/postgresql/data
1713
environment:
18-
POSTGRES_PASSWORD: $SERVICE_PASSWORD_POSTGRES
19-
POSTGRES_DB: windmill
14+
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
15+
- POSTGRES_DB=${POSTGRES_DB:-windmill}
2016
healthcheck:
2117
test: ["CMD-SHELL", "pg_isready -U postgres"]
2218
interval: 10s
@@ -28,7 +24,7 @@ services:
2824
environment:
2925
- SERVICE_FQDN_WINDMILL_8000
3026
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
31-
- MODE=server
27+
- MODE=${MODE:-server}
3228
- BASE_URL=$SERVICE_FQDN_WINDMILL
3329
depends_on:
3430
db:
@@ -40,8 +36,8 @@ services:
4036
image: ghcr.io/windmill-labs/windmill:main
4137
environment:
4238
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
43-
- MODE=worker
44-
- WORKER_GROUP=default
39+
- MODE=${MODE:-worker}
40+
- WORKER_GROUP=${WORKER_GROUP:-default}
4541
depends_on:
4642
db:
4743
condition: service_healthy
@@ -54,8 +50,8 @@ services:
5450
image: ghcr.io/windmill-labs/windmill:main
5551
environment:
5652
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
57-
- MODE=worker
58-
- WORKER_GROUP=default
53+
- MODE=${MODE:-worker}
54+
- WORKER_GROUP=${WORKER_GROUP:-default}
5955
depends_on:
6056
db:
6157
condition: service_healthy
@@ -68,8 +64,8 @@ services:
6864
image: ghcr.io/windmill-labs/windmill:main
6965
environment:
7066
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
71-
- MODE=worker
72-
- WORKER_GROUP=default
67+
- MODE=${MODE:-worker}
68+
- WORKER_GROUP=${WORKER_GROUP:-default}
7369
depends_on:
7470
db:
7571
condition: service_healthy
@@ -82,10 +78,10 @@ services:
8278
image: ghcr.io/windmill-labs/windmill:main
8379
environment:
8480
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@db/windmill
85-
- MODE=worker
86-
- WORKER_GROUP=native
87-
- NUM_WORKERS=8
88-
- SLEEP_QUEUE=200
81+
- MODE=${MODE:-worker}
82+
- WORKER_GROUP=${WORKER_GROUP:-native}
83+
- NUM_WORKERS=${NUM_WORKERS:-8}
84+
- SLEEP_QUEUE=${SLEEP_QUEUE:-200}
8985
depends_on:
9086
db:
9187
condition: service_healthy

0 commit comments

Comments
 (0)