37 lines
No EOL
1.1 KiB
Django/Jinja
37 lines
No EOL
1.1 KiB
Django/Jinja
services:
|
|
netbox:
|
|
ports:
|
|
- "{{ netbox_listen_address }}:{{ netbox_port }}:8080"
|
|
volumes:
|
|
- {{ netbox_home }}/data/media:/opt/netbox/netbox/media
|
|
- {{ netbox_home }}/data/reports:/opt/netbox/netbox/reports
|
|
- {{ netbox_home }}/data/scripts:/opt/netbox/netbox/scripts
|
|
environment:
|
|
SKIP_SUPERUSER: "false"
|
|
SUPERUSER_API_TOKEN: "{{ netbox_superuser_api_token }}"
|
|
SUPERUSER_EMAIL: "{{ netbox_admin_email }}"
|
|
SUPERUSER_NAME: "{{ netbox_admin_user }}"
|
|
SUPERUSER_PASSWORD: "{{ netbox_admin_password }}"
|
|
restart: unless-stopped
|
|
|
|
netbox-worker:
|
|
volumes:
|
|
- {{ netbox_home }}/data/media:/opt/netbox/netbox/media
|
|
- {{ netbox_home }}/data/reports:/opt/netbox/netbox/reports
|
|
- {{ netbox_home }}/data/scripts:/opt/netbox/netbox/scripts
|
|
restart: unless-stopped
|
|
|
|
postgres:
|
|
volumes:
|
|
- {{ netbox_home }}/data/postgres:/var/lib/postgresql/data
|
|
restart: unless-stopped
|
|
|
|
redis:
|
|
volumes:
|
|
- {{ netbox_home }}/data/redis:/data
|
|
restart: unless-stopped
|
|
|
|
redis-cache:
|
|
volumes:
|
|
- {{ netbox_home }}/data/redis-cache:/data
|
|
restart: unless-stopped |