Docker environment for popit_ng
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Dockerfile
README.md
docker-compose.yml
docker-init.sh
env-sample
settings_docker.py

README.md

popit_ng Docker Environment

Contents

This repository contains a Dockerfile to build a popit_ng instance, a docker-compose.yml file to run an almost complete popit_ng environment, and miscellenious scripts and configuration files.

The docker-compose.yml file provides a Docker environment with the following services:

  • popit_ng on Django
  • Celery
  • PostgreSQL
  • Redis
  • Elasticsearch

A webserver is not provided. You will have to provide your own webserver to act as a reverse proxy, as well as to serve static files.

Requirements

  • Docker and docker-compose
  • At least 3GB of RAM
  • At least 1GB of free disk space
  • Webserver with reverse proxy support

Usage

  1. Clone this repository and move into the directory
  2. Create a directory named esdata
  3. Make sure the esdata directory is readable and writable by UID 1000
  4. Add vm.max_map_count=262144 to /etc/sysctl.conf or equivalent
  5. Copy env_sample to .env and set a random password to the POSTGRES_PASSWORD variable
  6. Run docker-compose up to start the services
  7. Configure your webserver to reverse proxy port 8000 on the Docker host, as well as to serve files in the static directory at the URL /static