GithubHelp home page GithubHelp logo

evox95 / docker-etesync Goto Github PK

View Code? Open in Web Editor NEW

This project forked from victor-rds/docker-etebase

0.0 2.0 0.0 28 KB

Docker image files for ETESync server-skeleton

License: GNU Affero General Public License v3.0

Dockerfile 12.14% Shell 15.93% Python 71.92%

docker-etesync's Introduction

ETESync Docker Images

Docker image for ETESync based on the server-skeleton repository.

Tags

This build follows some tags of the official Python 3 hub:

Usage

docker run -d -e SUPER_USER=admin -e SUPER_PASS=changeme -p 80:8000 -v /path/on/host:/data victorrds/etesync

Create a container running standalone django server (not recommended for production).

Environment Variables

  • SERVER: Defines how the container will serve the application, the options are:
    • standalone uses start using ./manage runserver,
    • uwsgi start using uWSGI,
    • uwsgi-http same as the last but uses HTTP for web servers without wsgi protocol support.
  • DJANGO_HOSTS: the ALLOWED_HOSTS settings, must be valid domains separated by ,. default: * (not recommended for production);
  • DJANGO_SECRET: Defines the SECRET_KEYused by django, default: generate a new key every time the container starts.
  • DJANGO_PORT: the server port defaults to the exposed 8000;
  • DJANGO_LC: Django language code, default: en-us;
  • TZ: time zone, default UTC;
  • SUPER_USER and SUPER_PASS: Username and password of the django superuser (only used if no database is found, must be used together);
  • SUPER_EMAIL: Email of the django superuser (optional, only used if no database is found);
  • DEBUG: enable django debug, not recommended for production defaults to False;
  • PUID and PGID: set user and group when running using uwsgi, default: 1000;

Volumes

  • /data: database file location;
  • /var/www/static: Static files for httpd servers;

Advanced Customization

Further customization is possible by mounting your own settings file at /etesync/etesync_server/settings.py, the defult can be found here: settings.py

Compose example using nginx image

Here is a example of a docker-compose.yml file using uwsgi to serve the application and nginx as reverse-proxy and serving static files

version: '2.3'

volumes:
  etestatic:

services:
  etesync:
    container_name: etesync
    hostname: etesync
    image:victorrds/etesync:latest
    expose:
      - 8000
    volumes:
      - etestatic:/var/www/static:rw
    environment:
      - SERVER=uwsgi
      - SUPER_USER=admin
      - SUPER_PASS=admin
    network_mode: "bridge"
  nginx:
    container_name: nginx
    image: nginx:latest
    ports:
      - 443:443
      - 80:80
    volumes:
      - etestatic:/var/www/static:ro
      - ./nginx-example.conf:/etc/nginx/conf.d/default.conf:ro
    links:
      - etesync
    network_mode: "bridge"

The file nginx-example.conf can be found at the source repository.

docker-etesync's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.