something something managing too many camera stuff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dependabot[bot] 83f03d6e6b
Bump django from 3.1.8 to 3.1.13
2 months ago
.github try loading local config 7 months ago
config Add read-only serials views 7 months ago
controllers Django 3.2 fix 7 months ago
deploy complete docs 7 months ago
docker add docker 7 months ago
.gitignore First import 7 months ago
.pre-commit-config.yaml First import 7 months ago
Dockerfile add docker 7 months ago
LICENSE wip doc 7 months ago complete docs 7 months ago First import 7 months ago
pyproject.toml First import 7 months ago
requirements.txt Bump django from 3.1.8 to 3.1.13 2 months ago
setup.cfg First import 7 months ago


Code style: black


  • Python 3.8 (minimum !)
  • Nginx
  • PostgreSQL

Install - manual

We assume in here you are installing under the camgear user with default home directory /home/camgear, like by doing:

useradd -m -s /bin/bash camgear

API Backend

sudo su - camgear
git clone camgear
cd camgear
python3.8 -m virtualenv -p python3.8 venv
source venv/bin/activate
pip install --requirement requirements.txt
# For production environment
cp deploy/ .env
$EDITOR .env
# For local development see the other section
python collectstatic
# don't forget to run migrations
python migrate
# create a superuser
python createsuperuser

You can uses deploy/camgear-server.service for your systemd service.


See the file deploy/camgear-nginx.conf for a sample, don't forget you need all the location /xxx as the example to make it works.


For local development, you always needs to export DJANGO_SETTINGS_MODULE=config.settings.local to have the right config:

cp deploy/ .env
$EDITOR .env
export DJANGO_SETTINGS_MODULE=config.settings.local
python ...

Docker image build

docker build -t camgear -f Dockerfile


Look at release changes first if anything is needed.

sudo su - camgear
cd camgear
source venv/bin/activate
git pull
pip install -r requirements.txt
python migrate

Then restart your camgear-server service.

Install - docker image

You can use the Dockerfile to run Camgear.

See the file ./deploy/ for the list of ENV variables you can use for the container.

You can copy that env file, edit it, and use --env-file for docker run/exec too.

The volume for uploads is /uploads.

To migrate the database:

docker exec -it camgear python migrate

To create your superuser:

docker exec -it camgear python createsuperuser

Example build & run:

docker build -t camgear -f Dockerfile .
docker run --net=host --name camgear -it --rm --env-file .env -v /local/path/to/uploads:/uploads camgear:latest

Creating an user

Use the python createsuperuser command to create a super user.


  • MIT License