-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (74 loc) · 1.57 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: "3.7"
services:
db:
image: postgres:14
restart: unless-stopped
deploy:
replicas: 1
expose:
- 5432
ports:
- 5432:5432
volumes:
- .docker/data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: windmill
POSTGRES_DB: windmill
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
windmill_server:
image: ${WM_IMAGE}
restart: unless-stopped
pull_policy: always
deploy:
replicas: 1
expose:
- 8000
ports:
- 8000:8000
environment:
- DATABASE_URL=${DATABASE_URL}
- MODE=server
depends_on:
db:
condition: service_healthy
windmill_worker:
image: ${WM_IMAGE}
pull_policy: always
restart: unless-stopped
deploy:
replicas: 1
resources:
limits:
cpus: "1"
memory: 2048M
environment:
- DATABASE_URL=${DATABASE_URL}
- MODE=worker
- WORKER_GROUP=default
depends_on:
db:
condition: service_healthy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- .docker/data/worker:/tmp/windmill/cache
lsp:
image: ghcr.io/windmill-labs/windmill-lsp:latest
pull_policy: always
restart: unless-stopped
expose:
- 3001
volumes:
- .docker/data/lsp:/root/.cache
caddy:
image: caddy:2.5.2-alpine
restart: unless-stopped
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
ports:
- 8080:80
environment:
- BASE_URL=":80"