mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-12 00:06:14 +00:00
simplify dockerfile - remove unecessary caddy
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
SITE_URL=localhost
|
||||
DB_PASSWORD=changeme
|
||||
|
||||
# GitHub OAuth- https://docs.github.com/en/developers/apps/building-oauth-apps/creating-an-oauth-app
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{$SITE_URL} {
|
||||
:80 {
|
||||
bind {$ADDRESS}
|
||||
reverse_proxy /* windmill:8000
|
||||
}
|
||||
|
||||
@@ -104,8 +104,7 @@ Windmill is <b>fully open-sourced</b>:
|
||||
|
||||
## How to self-host
|
||||
|
||||
`docker volume create caddy_data && docker-compose up` with the following
|
||||
docker-compose is sufficient:
|
||||
`docker compose up` with the following docker-compose is sufficient:
|
||||
<https://github.com/windmill-labs/windmill/blob/main/docker-compose.yml>
|
||||
|
||||
The default super-admin user is: admin@windmill.dev / changeme
|
||||
|
||||
+3
-17
@@ -23,11 +23,11 @@ services:
|
||||
privileged: true
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 8000:8000
|
||||
- 80:8000
|
||||
environment:
|
||||
- DATABASE_URL=postgres://postgres:${DB_PASSWORD}@db/windmill?sslmode=disable
|
||||
- APP_USER_PASSWORD=changeme
|
||||
- BASE_URL=https://${SITE_URL}
|
||||
- BASE_URL=http://localhost
|
||||
- BASE_INTERNAL_URL=http://localhost:8000
|
||||
- RUST_LOG=info
|
||||
- NUM_WORKERS=3
|
||||
@@ -38,20 +38,6 @@ services:
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
caddy:
|
||||
image: caddy
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- SITE_URL=${SITE_URL}
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
volumes:
|
||||
- $PWD/Caddyfile:/etc/caddy/Caddyfile
|
||||
- caddy_data:/data
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
external: true
|
||||
|
||||
db_data: null
|
||||
|
||||
Reference in New Issue
Block a user