release
This commit is contained in:
12
Caddyfile
Normal file
12
Caddyfile
Normal 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
|
||||||
|
}
|
||||||
@@ -6,8 +6,8 @@ services:
|
|||||||
LISTEN_PORT: ${LISTEN_PORT:-8080}
|
LISTEN_PORT: ${LISTEN_PORT:-8080}
|
||||||
container_name: gpon-monitor
|
container_name: gpon-monitor
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
expose:
|
||||||
- "${EXTERNAL_PORT:-8080}:${LISTEN_PORT:-8080}"
|
- "${LISTEN_PORT:-8080}"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/rrd:/data/rrd
|
- ./data/rrd:/data/rrd
|
||||||
env_file:
|
env_file:
|
||||||
@@ -23,6 +23,21 @@ services:
|
|||||||
retries: 3
|
retries: 3
|
||||||
start_period: 40s
|
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:
|
networks:
|
||||||
gpon-monitor-net:
|
gpon-monitor-net:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
Reference in New Issue
Block a user