Skip to content

grahamgilbert/docker-imagr_server

Repository files navigation

Imagr Server

This Docker image runs Imagr Server. The container expects a linked PostgreSQL database container.

Settings

Several options, such as the timezone and admin password are customizable using environment variables.

  • ADMIN_PASS: The default admin's password. This is only set if there are no other superusers, so if you choose your own admin username and password later on, this won't be created.
  • DOCKER_IMAGR_TZ: The desired timezone. Defaults to Europe/London.
  • DOCKER_IMAGR_ADMINS: The admin user's details. Defaults to Docker User, docker@localhost.

If you require more advanced settings, you can override settings.py with your own. A good starting place can be found on this image's Github repository.

  -v /usr/local/docker/imagr/settings/settings.py:/home/docker/imagr/imagr_server/settings.py

#Postgres container

Out of the box, Imagr uses a SQLite database, however if you are running it in a production environment, it is recommended that you use a Postgres Database. I have created a Postgres container that is set up ready to use with Imagr Server - just tell it where you want to store your data, and pass it some environment variables for the database name, username and password.

  • DB_NAME
  • DB_USER
  • DB_PASS
$ docker pull grahamgilbert/postgres
$ docker run -d --name="postgres-imagr" \
  -v /db:/var/lib/postgresql/data \
  -e DB_NAME=imagr \
  -e DB_USER=admin \
  -e DB_PASS=password \
  --restart="always" \
  grahamgilbert/postgres

#Running the Imagr Server Container

$ docker run -d --name="imagr" \
  -p 80:8000 \
  --link postgres-imagr:db \
  -e ADMIN_PASS=pass \
  -e DB_NAME=imagr \
  -e DB_USER=admin \
  -e DB_PASS=password \
  --restart="always" \
  grahamgilbert/imagr-server

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published