Skip to content

pavulonx/etebase-server-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Etebase Sever Docker Image

Release images Build Alpine based image master Build Debian based image master

Docker image for EteBase based on the server repository by Tom Hacohen.

DOCKER HUB: https://hub.docker.com/r/pavulonx/etebase-server

Tags

The following tags are built on latest python image version 3.8.5 and v0.5.0 tag of EteSync Server

The following tags are built on latest python image version 3.8.5 and master branch of EteSync Server

Usage

docker run -d -e SUPER_USER=admin -e [email protected] -p 80:3735 -v /path/on/host:/data pavulonx/etebase-server

Create a container running EteSync using http protocol.

Volumes

  • /data: database file location if using SQLite

Ports

This image exposes the 3735 TCP Port

Environment Variables

General

  • PORT: Defines port on which application should be run
  • AUTO_MIGRATE: Trigger database update/migration every time the container starts, default: false , more details below.
  • ALLOWED_HOSTS: the ALLOWED_HOSTS settings, must be valid domains separated by ,. default: localhost;
  • DEBUG: enables Django Debug mode, not recommended for production defaults to false;

Database

  • DATABASE: Database backend, can be set to sqlite or postgres, defaults to sqlite

If DATABASE is set to sqlite:

  • SQLITE_DB_NAME: name of the sqlite database file, defaults to db.sqlite3

If DATABASE is set to postgres:

  • PG_DB_NAME: PostgreSQL database name
  • PG_USER: Database user
  • PG_PASSWD: User's password
  • PG_HOST: Host of the database
  • PG_PORT: Port of the database, default: 5432

How to create a Superuser

Method 1 Environment Variables on first run.

If these variables are set on the first run it will trigger the creation of a superuser after the database is ready (only used if no previous database is found).

  • SUPER_USER: Username of the django superuser;
  • SUPER_PASS: Password of the django superuser (optional, one will be generated if not found);
  • SUPER_EMAIL: Email of the django superuser (optional);

Method 2 Python Shell

At any moment after the database is ready, you can create a new superuser by running and following the prompts:

docker exec -it {container_name} python manage.py createsuperuser

Upgrade application and database

If AUTO_MIGRATE is not set to true you can update by running:

docker exec -it {container_name} python manage.py migrate

Serving Static Files

When behind a reverse-proxy/http server compatible uwsgi protocol the static files are located at /var/www/etesync/static, files will be copied if missing on start.

About

Docker image files for EteBase server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 50.6%
  • Shell 49.4%