Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
12c04b0a03 |
+8
-2
@@ -51,7 +51,12 @@ services:
|
||||
labels:
|
||||
- traefik.enable=${TRAEFIK_ENABLED}
|
||||
- traefik.docker.network=${TRAEFIK_NETWORK}
|
||||
# HTTPS
|
||||
### Section HTTP
|
||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.entrypoints=http
|
||||
# redirect to HTTPS only
|
||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.middlewares=http-to-https
|
||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.rule=Host(`${TRAEFIK_MATCHRULE}`)
|
||||
### Section HTTPS
|
||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https
|
||||
# configure the exposed service
|
||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.middlewares=hsts
|
||||
@@ -67,9 +72,11 @@ services:
|
||||
user: netbox:root
|
||||
volumes:
|
||||
- ${NETBOX_DATA}/configuration:/etc/netbox/config:z,ro
|
||||
- ${NETBOX_DATA}/initializers:/opt/netbox/initializers:z,ro
|
||||
- ${NETBOX_DATA}/media:/opt/netbox/netbox/media:z
|
||||
- ${NETBOX_DATA}/reports:/etc/netbox/reports:z,ro
|
||||
- ${NETBOX_DATA}/scripts:/etc/netbox/scripts:z,ro
|
||||
- ${NETBOX_DATA}/startup_scripts:/opt/netbox/startup_scripts:z,ro
|
||||
|
||||
netbox-worker:
|
||||
<<: *netbox
|
||||
@@ -130,7 +137,6 @@ services:
|
||||
|
||||
redis-cache:
|
||||
image: redis:${REDIS_VERSION}
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
|
||||
Reference in new issue
Block a user