Docker image for EteBase based on the server repository by Tom Hacohen.
DOCKER HUB: https://hub.docker.com/r/pavulonx/etebase-server
The following tags are built on latest python image version 3.8.5
and v0.5.0
tag of EteSync Server
0.5.0-alpine
,alpine
- (release:tags/alpine/Dockerfile)0.5.0
,latest
(release:tags/base/Dockerfile)
The following tags are built on latest python image version 3.8.5
and master
branch of EteSync Server
master-alpine
- (release:tags/alpine/Dockerfile)master
(release:tags/base/Dockerfile)
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.
/data
: database file location if using SQLite
This image exposes the 3735 TCP Port
- 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 backend, can be set to
sqlite
orpostgres
, defaults tosqlite
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
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);
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
If AUTO_MIGRATE
is not set to true
you can update by running:
docker exec -it {container_name} python manage.py migrate
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.