mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(template): Windmill Naming
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
windmill-postgres:
|
||||||
image: postgres:16
|
image: postgres:16
|
||||||
shm_size: 1g
|
shm_size: 1g
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/postgresql/data
|
- windmill-postgres-data:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
- dokploy-network
|
- dokploy-network
|
||||||
environment:
|
environment:
|
||||||
@@ -18,7 +18,7 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
windmill_server:
|
windmill-server:
|
||||||
image: ghcr.io/windmill-labs/windmill:main
|
image: ghcr.io/windmill-labs/windmill:main
|
||||||
networks:
|
networks:
|
||||||
- dokploy-network
|
- dokploy-network
|
||||||
@@ -28,12 +28,12 @@ services:
|
|||||||
- MODE=server
|
- MODE=server
|
||||||
- BASE_URL=http://${WINDMILL_HOST}
|
- BASE_URL=http://${WINDMILL_HOST}
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
windmill-postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
volumes:
|
volumes:
|
||||||
- worker_logs:/tmp/windmill/logs
|
- windmill-worker-logs:/tmp/windmill/logs
|
||||||
|
|
||||||
windmill_worker:
|
windmill-worker:
|
||||||
image: ghcr.io/windmill-labs/windmill:main
|
image: ghcr.io/windmill-labs/windmill:main
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
@@ -49,14 +49,14 @@ services:
|
|||||||
- MODE=worker
|
- MODE=worker
|
||||||
- WORKER_GROUP=default
|
- WORKER_GROUP=default
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
windmill-postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- worker_dependency_cache:/tmp/windmill/cache
|
- windmill-worker-cache:/tmp/windmill/cache
|
||||||
- worker_logs:/tmp/windmill/logs
|
- windmill-worker-logs:/tmp/windmill/logs
|
||||||
|
|
||||||
windmill_worker_native:
|
windmill-worker-native:
|
||||||
image: ghcr.io/windmill-labs/windmill:main
|
image: ghcr.io/windmill-labs/windmill:main
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@@ -74,20 +74,20 @@ services:
|
|||||||
- NUM_WORKERS=8
|
- NUM_WORKERS=8
|
||||||
- SLEEP_QUEUE=200
|
- SLEEP_QUEUE=200
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
windmill-postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
volumes:
|
volumes:
|
||||||
- worker_logs:/tmp/windmill/logs
|
- windmill-worker-logs:/tmp/windmill/logs
|
||||||
|
|
||||||
lsp:
|
windmill-lsp:
|
||||||
image: ghcr.io/windmill-labs/windmill-lsp:latest
|
image: ghcr.io/windmill-labs/windmill-lsp:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- dokploy-network
|
- dokploy-network
|
||||||
volumes:
|
volumes:
|
||||||
- lsp_cache:/root/.cache
|
- windmill-lsp-cache:/root/.cache
|
||||||
|
|
||||||
caddy:
|
windmill-caddy:
|
||||||
image: ghcr.io/windmill-labs/caddy-l4:latest
|
image: ghcr.io/windmill-labs/caddy-l4:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
@@ -97,11 +97,15 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- BASE_URL=":80"
|
- BASE_URL=":80"
|
||||||
depends_on:
|
depends_on:
|
||||||
- windmill_server
|
- windmill-server
|
||||||
- lsp
|
- windmill-lsp
|
||||||
|
|
||||||
|
networks:
|
||||||
|
dokploy-network:
|
||||||
|
external: true
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db_data:
|
windmill-postgres-data:
|
||||||
worker_dependency_cache:
|
windmill-worker-cache:
|
||||||
worker_logs:
|
windmill-worker-logs:
|
||||||
lsp_cache:
|
windmill-lsp-cache:
|
||||||
@@ -14,14 +14,14 @@ export function generate(schema: Schema): Template {
|
|||||||
{
|
{
|
||||||
host: mainDomain,
|
host: mainDomain,
|
||||||
port: 80,
|
port: 80,
|
||||||
serviceName: "caddy",
|
serviceName: "windmill-caddy",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const envs = [
|
const envs = [
|
||||||
`WINDMILL_HOST=${mainDomain}`,
|
`WINDMILL_HOST=${mainDomain}`,
|
||||||
`POSTGRES_PASSWORD=${postgresPassword}`,
|
`POSTGRES_PASSWORD=${postgresPassword}`,
|
||||||
`DATABASE_URL=postgres://postgres:${postgresPassword}@db/windmill?sslmode=disable`,
|
`DATABASE_URL=postgres://postgres:${postgresPassword}@windmill-postgres/windmill?sslmode=disable`,
|
||||||
];
|
];
|
||||||
|
|
||||||
const mounts: Template["mounts"] = [
|
const mounts: Template["mounts"] = [
|
||||||
@@ -29,8 +29,8 @@ export function generate(schema: Schema): Template {
|
|||||||
filePath: "Caddyfile",
|
filePath: "Caddyfile",
|
||||||
content: `:80 {
|
content: `:80 {
|
||||||
bind 0.0.0.0
|
bind 0.0.0.0
|
||||||
reverse_proxy /ws/* http://lsp:3001
|
reverse_proxy /ws/* http://windmill-lsp:3001
|
||||||
reverse_proxy /* http://windmill_server:8000
|
reverse_proxy /* http://windmill-server:8000
|
||||||
}`,
|
}`,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user