Public | Automated Build

Last pushed: 2 years ago
Short Description
turtl container based on ArthurGarnier's version.
Full Description


Docker file to run turtl ( api server

How to build ?

sudo docker build -t turtl_docker .

How to run ?

sudo docker run -d -p 8181:8181 -v $(pwd)/volume:/var/lib/rethinkdb/instance1 -t turtl_docker


The image supports the following environment variables that will be injected in the configuration at each restart of the container :

  • PIDFILE: defaults to 'nil'
  • BINDADDR: defaults to ''
  • BINDPORT: defaults to '8181'
  • PROD_ERR_HANDLING: defaults to 't'
  • FQDN: defaults to 'turtl.local'
  • SITE_URL: defaults to 'http://turtl.local'
  • ADMIN_EMAIL: defaults to ''
  • EMAIL_FROM: defaults to ''
  • SMTP_USER: defaults to empty
  • SMTP_PASS: defaults to empty
  • DISPLAY_ERRORS: defaults to 't'
  • DEFAULT_STORAGE_LIMIT: defaults to 100
  • STORAGE_INVITE_CREDIT: defaults to 25
  • LOCAL_UPLOAD_URL: defaults to http://turtl.local
  • LOCAL_UPLOAD_PATH: defaults to "/opt/api/uploads"
  • AWS_S3_TOKEN: defaults to "(:token ''
                            :secret ''
                            :bucket ''
                            :endpoint '')"

How to run behind an Apache proxy ? (safer)

First, listen only on localhost :

sudo docker run -d --name turtl -p -v $(pwd)/volume:/var/lib/rethinkdb/instance1 -t turtl_docker

Secondly add your reverse proxy in Apache conf :

<VirtualHost *:443>

SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder     on
SSLCompression          off
SSLOptions +StrictRequire
#If you're using let's encrypt
SSLCertificateFile /etc/letsencrypt/live/
SSLCertificateKeyFile /etc/letsencrypt/live/
SSLCertificateChainFile    /etc/letsencrypt/live/

ProxyPreserveHost On
ProxyRequests off
ProxyPass / Keepalive=On timeout=1600
ProxyPassReverse /

    LogLevel info

    CustomLog ${APACHE_LOG_DIR}/turtl.log combined

Docker Pull Command
Source Repository