This commit is contained in:
Mateusz Gruszczyński
2026-01-02 23:07:14 +01:00
parent 09f3e6e65d
commit f0fc653d0b
2 changed files with 29 additions and 2 deletions

12
Caddyfile Normal file
View File

@@ -0,0 +1,12 @@
:80 {
reverse_proxy gpon-monitor:{$LISTEN_PORT}
header {
-Server
-X-Powered-By
X-Frame-Options SAMEORIGIN
X-Content-Type-Options nosniff
}
encode gzip
}

View File

@@ -6,8 +6,8 @@ services:
LISTEN_PORT: ${LISTEN_PORT:-8080}
container_name: gpon-monitor
restart: unless-stopped
ports:
- "${EXTERNAL_PORT:-8080}:${LISTEN_PORT:-8080}"
expose:
- "${LISTEN_PORT:-8080}"
volumes:
- ./data/rrd:/data/rrd
env_file:
@@ -23,6 +23,21 @@ services:
retries: 3
start_period: 40s
caddy:
image: caddy:alpine
container_name: gpon-caddy
restart: unless-stopped
ports:
- "${EXTERNAL_PORT:-8080}:80"
environment:
- LISTEN_PORT=${LISTEN_PORT:-8080}
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
depends_on:
- gpon-monitor
networks:
- gpon-monitor-net
networks:
gpon-monitor-net:
driver: bridge