Spaces:
Sleeping
Sleeping
| version: '3.8' | |
| services: | |
| netbox: | |
| image: netboxcommunity/netbox:latest | |
| container_name: overgrowth-netbox | |
| depends_on: | |
| - postgres | |
| - redis | |
| - redis-cache | |
| env_file: netbox.env | |
| ports: | |
| - "8000:8080" | |
| volumes: | |
| - netbox-media:/opt/netbox/netbox/media | |
| - netbox-reports:/opt/netbox/netbox/reports | |
| - netbox-scripts:/opt/netbox/netbox/scripts | |
| restart: unless-stopped | |
| netbox-worker: | |
| image: netboxcommunity/netbox:latest | |
| container_name: overgrowth-netbox-worker | |
| depends_on: | |
| - netbox | |
| env_file: netbox.env | |
| command: /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py rqworker | |
| restart: unless-stopped | |
| netbox-housekeeping: | |
| image: netboxcommunity/netbox:latest | |
| container_name: overgrowth-netbox-housekeeping | |
| depends_on: | |
| - netbox | |
| env_file: netbox.env | |
| command: /opt/netbox/housekeeping.sh | |
| restart: unless-stopped | |
| postgres: | |
| image: postgres:15-alpine | |
| container_name: overgrowth-postgres | |
| environment: | |
| POSTGRES_USER: netbox | |
| POSTGRES_PASSWORD: netbox_password | |
| POSTGRES_DB: netbox | |
| volumes: | |
| - postgres-data:/var/lib/postgresql/data | |
| restart: unless-stopped | |
| redis: | |
| image: redis:7-alpine | |
| container_name: overgrowth-redis | |
| command: redis-server --appendonly yes | |
| volumes: | |
| - redis-data:/data | |
| restart: unless-stopped | |
| redis-cache: | |
| image: redis:7-alpine | |
| container_name: overgrowth-redis-cache | |
| command: redis-server | |
| restart: unless-stopped | |
| volumes: | |
| netbox-media: | |
| netbox-reports: | |
| netbox-scripts: | |
| postgres-data: | |
| redis-data: | |