diff --git a/.env b/.env index 2bb762a8d8..565f50c41b 100644 --- a/.env +++ b/.env @@ -3,5 +3,4 @@ DB_PASSWORD=changeme # this is the url that your instance is publicly exposed to WM_BASE_URL=http://localhost -# this is the addres caddy will listen on -CADDY_REVERSE_PROXY=":80" +# To use another port than :80, setup the Caddyfile and the caddy section of the docker-compose to your needs: https://caddyserver.com/docs/getting-started \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index c83b5b060b..8edaa2298a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -72,13 +72,14 @@ services: caddy: image: caddy:2.5.2-alpine restart: unless-stopped + + # Configure the mounted Caddyfile and the exposed ports or use another reverse proxy if needed volumes: - ./Caddyfile:/etc/caddy/Caddyfile ports: - 80:80 - - 443:443 environment: - - BASE_URL=${CADDY_REVERSE_PROXY} + - BASE_URL=":80" volumes: db_data: null