simplify dockerfile - remove unecessary caddy

This commit is contained in:
Ruben Fiszel
2022-06-12 03:05:39 +02:00
parent c3d2fd6e52
commit c3526d3172
4 changed files with 5 additions and 21 deletions
-1
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
{$SITE_URL} {
:80 {
bind {$ADDRESS}
reverse_proxy /* windmill:8000
}
+1 -2
View File
@@ -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
View File
@@ -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