This commit is contained in:
Shihaam Abdul Rahman 2023-01-23 14:27:09 +05:00
parent 5f6eb650c8
commit 25704ba02e
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

View File

@ -13,7 +13,7 @@ services:
- 8000:8000
volumes:
- ./configuration.py:/opt/netbox/netbox/netbox/configuration.py
command: python manage.py runserver 0.0.0.0:8000 --insecure # COMMENT THIS LINE WHEN RUNNING IN PRODUCTION
command: python manage.py runserver 0.0.0.0:8000 --insecure # COMMENT THIS LINE AND REVERSE PROXYIN PRODUCTION !!!
depends_on:
- redis
- postgres
@ -25,7 +25,7 @@ services:
environment:
- POSTGRES_DB=netbox
- POSTGRES_USER=netbox
- POSTGRES_PASSWORD=even-confider-closable
- POSTGRES_PASSWORD=even-confider-closable # CHANGE THIS IN PRODUCTION !!
restart: always
################################################
redis:
@ -35,6 +35,8 @@ services:
- Use the sample `configuration.py` in this repo and edit it accordingly.
- Run `docker compose up -d`
## PLEASE, FOR THE LOVE OF GOD PLEASE DO NOT USE PASSWORD I GAVE IN THIS REPO IN PRODUCTION !!
## Some commands that will be useful
- Migrate Database (required on initial install and upgrade
```bash