mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-12-10 05:42:36 +00:00
LHJ added stack config; docker compose up still working
This commit is contained in:
parent
473ebc4a5a
commit
3769b6e8a5
|
|
@ -7,6 +7,17 @@ services:
|
||||||
- redis-cache
|
- redis-cache
|
||||||
env_file: env/netbox.env
|
env_file: env/netbox.env
|
||||||
user: "unit:root"
|
user: "unit:root"
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "4g"
|
||||||
|
cpus: "5"
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.netbox.rule=Host(`netbox.dfestaging.jennyme.co.za`)
|
||||||
|
- traefik.http.routers.netbox.tls.certresolver=myresolver # Use the ACME resolver
|
||||||
|
- traefik.http.routers.netbox.entrypoints=websecure # Use the HTTPS entrypoint
|
||||||
|
- traefik.http.services.netbox.loadbalancer.server.port=8000
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: curl -f http://localhost:8080/login/ || exit 1
|
test: curl -f http://localhost:8080/login/ || exit 1
|
||||||
start_period: 90s
|
start_period: 90s
|
||||||
|
|
@ -17,6 +28,9 @@ services:
|
||||||
- netbox-media-files:/opt/netbox/netbox/media:rw
|
- netbox-media-files:/opt/netbox/netbox/media:rw
|
||||||
- netbox-reports-files:/opt/netbox/netbox/reports:rw
|
- netbox-reports-files:/opt/netbox/netbox/reports:rw
|
||||||
- netbox-scripts-files:/opt/netbox/netbox/scripts:rw
|
- netbox-scripts-files:/opt/netbox/netbox/scripts:rw
|
||||||
|
networks:
|
||||||
|
- netbox
|
||||||
|
- dfe_network
|
||||||
netbox-worker:
|
netbox-worker:
|
||||||
<<: *netbox
|
<<: *netbox
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
@ -31,6 +45,9 @@ services:
|
||||||
start_period: 20s
|
start_period: 20s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
interval: 15s
|
interval: 15s
|
||||||
|
networks:
|
||||||
|
- netbox
|
||||||
|
- dfe_network
|
||||||
netbox-housekeeping:
|
netbox-housekeeping:
|
||||||
<<: *netbox
|
<<: *netbox
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
@ -43,6 +60,9 @@ services:
|
||||||
start_period: 20s
|
start_period: 20s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
interval: 15s
|
interval: 15s
|
||||||
|
networks:
|
||||||
|
- netbox
|
||||||
|
- dfe_network
|
||||||
|
|
||||||
# postgres
|
# postgres
|
||||||
#postgres:
|
#postgres:
|
||||||
|
|
@ -73,6 +93,9 @@ services:
|
||||||
env_file: env/redis.env
|
env_file: env/redis.env
|
||||||
volumes:
|
volumes:
|
||||||
- netbox-redis-data:/data
|
- netbox-redis-data:/data
|
||||||
|
networks:
|
||||||
|
- netbox
|
||||||
|
- dfe_network
|
||||||
redis-cache:
|
redis-cache:
|
||||||
image: docker.io/valkey/valkey:8.1-alpine
|
image: docker.io/valkey/valkey:8.1-alpine
|
||||||
command:
|
command:
|
||||||
|
|
@ -83,6 +106,9 @@ services:
|
||||||
env_file: env/redis-cache.env
|
env_file: env/redis-cache.env
|
||||||
volumes:
|
volumes:
|
||||||
- netbox-redis-cache-data:/data
|
- netbox-redis-cache-data:/data
|
||||||
|
networks:
|
||||||
|
- netbox
|
||||||
|
- dfe_network
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
netbox-media-files:
|
netbox-media-files:
|
||||||
|
|
@ -97,3 +123,12 @@ volumes:
|
||||||
driver: local
|
driver: local
|
||||||
netbox-scripts-files:
|
netbox-scripts-files:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
||||||
|
|
||||||
|
networks:
|
||||||
|
netbox:
|
||||||
|
driver: "overlay"
|
||||||
|
#driver: bridge
|
||||||
|
attachable: true
|
||||||
|
dfe_network:
|
||||||
|
external: true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue