fix readme, first pull config file
This commit is contained in:
parent
962d5410b1
commit
94d020c9ba
@ -33,5 +33,13 @@ RUN pip install -r requirements.txt \
|
|||||||
# change working dir to application
|
# change working dir to application
|
||||||
WORKDIR /opt/netbox/netbox
|
WORKDIR /opt/netbox/netbox
|
||||||
|
|
||||||
|
# Static files generation
|
||||||
|
RUN cp netbox/configuration_example.py netbox/configuration.py \
|
||||||
|
&& python manage.py collectstatic --no-input \
|
||||||
|
&& rm netbox/configuration.py
|
||||||
|
|
||||||
|
# Web server setup
|
||||||
|
RUN cp /opt/netbox/contrib/gunicorn.py /opt/netbox/gunicorn.py
|
||||||
|
|
||||||
# run the service
|
# run the service
|
||||||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||||
|
@ -33,12 +33,12 @@ services:
|
|||||||
image: redis:6.0-alpine
|
image: redis:6.0-alpine
|
||||||
restart: always
|
restart: always
|
||||||
```
|
```
|
||||||
|
- Fetch example config from container `docker compose run --rm netbox cat /opt/netbox/netbox/netbox/configuration_example.py > configuration.py` and edit it according to your enviroment.
|
||||||
- Create `devicetype-images` and `image-attachments` folders under media folder
|
- Create `devicetype-images` and `image-attachments` folders under media folder
|
||||||
```bash
|
```bash
|
||||||
mkdir -p media/image-attachments media/devicetype-images
|
mkdir -p media/image-attachments media/devicetype-images
|
||||||
```
|
```
|
||||||
- Generate Secret key `docker compose run --rm netbox ./generate_secret_key.py`, this will be needed in next step
|
- Generate Secret key `docker compose run --rm netbox ./generate_secret_key.py`, this will be needed in next step
|
||||||
- Fetch example config from container `docker compose run --rm netbox cat /opt/netbox/netbox/netbox/configuration_example.py > configuration.py` and edit it according to your enviroment.
|
|
||||||
- Run `docker compose up -d`
|
- Run `docker compose up -d`
|
||||||
|
|
||||||
## PLEASE, FOR THE LOVE OF GOD PLEASE DO NOT USE PASSWORD I GAVE IN THIS REPO IN PRODUCTION !!
|
## PLEASE, FOR THE LOVE OF GOD PLEASE DO NOT USE PASSWORD I GAVE IN THIS REPO IN PRODUCTION !!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user