nochmal Compose

This commit is contained in:
Daniel Nagel 2025-12-21 15:27:36 +00:00
parent 81f0f1ad01
commit 4b0d8e0254
3 changed files with 8 additions and 17 deletions

4
Caddyfile Normal file
View File

@ -0,0 +1,4 @@
:80 {
root * /usr/share/caddy
file_server
}

View File

@ -1,6 +0,0 @@
FROM caddy:alpine
# Statische Dateien der Leaflet-Map ins Standard-Webroot von Caddy kopieren
COPY index.html /usr/share/caddy/index.html
COPY markers.js /usr/share/caddy/markers.js
COPY tiles /usr/share/caddy/tiles

View File

@ -5,14 +5,7 @@ services:
ports:
- "2001:80"
volumes:
- ./index.html:/usr/share/caddy/index.html
- ./tiles:/usr/share/caddy/tiles
- ./markers.js:/usr/share/caddy/markers.js
command: |
caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
config:
Caddyfile: |
:80 {
root * /usr/share/caddy
file_server
}
- .:/usr/share/caddy
- ./Caddyfile:/etc/caddy/Caddyfile