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