Comments (6)
Can you please create a gist with your current docker-compose.yml
and add the link here?
from netbox-docker.
here you go
https://gist.github.com/RyanD0001/e4cd0a884b0cae94f480ed52e0e2a4c0
from netbox-docker.
What happens if you gradually update the version of netbox? It should actually upgrade the database automagically. If it doesn't work, please add logs to your gist with the error.
from netbox-docker.
How do I do this?
from netbox-docker.
version: '3'
services:
netbox:
build:
context: .
#args:
# - BRANCH=${VERSION-master}
image: ninech/netbox:v2.1.6
depends_on:
- postgres
env_file: netbox.env
volumes:
- netbox-nginx-config:/etc/netbox-nginx/
- netbox-static-files:/opt/netbox/netbox/static
nginx:
image: nginx:1.11-alpine
command: nginx -g 'daemon off;' -c /etc/netbox-nginx/nginx.conf
depends_on:
- netbox
ports:
- 80
volumes:
- netbox-static-files:/opt/netbox/netbox/static
- netbox-nginx-config:/etc/netbox-nginx/
postgres:
image: postgres:9.6-alpine
env_file: postgres.env
volumes:
netbox-static-files:
driver: local
netbox-nginx-config:
driver: local
Run dc up -d
, then dc stop netbox
. Now change the version, at least 2.2.1:
version: '3'
services:
netbox:
build:
context: .
#args:
# - BRANCH=${VERSION-master}
image: ninech/netbox:v2.2.2
depends_on:
- postgres
env_file: netbox.env
volumes:
- netbox-nginx-config:/etc/netbox-nginx/
- netbox-static-files:/opt/netbox/netbox/static
nginx:
image: nginx:1.11-alpine
command: nginx -g 'daemon off;' -c /etc/netbox-nginx/nginx.conf
depends_on:
- netbox
ports:
- 80
volumes:
- netbox-static-files:/opt/netbox/netbox/static
- netbox-nginx-config:/etc/netbox-nginx/
postgres:
image: postgres:9.6-alpine
env_file: postgres.env
volumes:
netbox-static-files:
driver: local
netbox-nginx-config:
driver: local
Then again dc up netbox
. It should start migrating the db.
from netbox-docker.
Great that worked.
Thanks
from netbox-docker.
Related Issues (20)
- dependency failed to start: container netbox-docker-netbox-1 exited (127) HOT 1
- Server Error 'NoneType' object has no attribute 'get_absolute_url'
- Social Auth not following proxy settings in config file
- docker compose up fails on "unexpected EOF on client connection" during "./manage.py migrate --no-input"
- Restart Policy in the YAML? HOT 1
- Copying of Admin->Authentication->Permissions HOT 1
- Support for JSON and YAML configuration files HOT 5
- psycopg connection issue HOT 2
- Netbox Restarts in Nomad
- docker compose up fails on "unexpected EOF on client connection" during "./manage.py migrate --no-input" HOT 1
- Upgrading from Release to Release Via Docker
- Add Environment Variable to Mange ALLOW_TOKEN_RETRIEVAL HOT 1
- Nginx Unit user UID has changed to 999, breaks git data source sync HOT 2
- Insufficient write permission to the media root
- Netbox 4.0.0 container unhealthy with LOGIN_REQUIRED set to true HOT 1
- After migrating to Netbox-docker version 2.9.0 and Netbox 4.0, dark mode not being kept when refreshing the page HOT 5
- Increase healthcheck start period
- No module named 'extras.plugins' when building custom image HOT 1
- Git datasource sync error in rq-worker: LookupError: App 'core' doesn't have a 'ObjectType' model. HOT 2
- IP Ranges gone after upgrade to 4.0.2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netbox-docker.