A simple journaling app
Multiple reasons. Mostly because:
Here. Please read its terms before signing up.
You'll want to create a config.yml file in your working directory.
This file should contain (at the very least):
# this key is vital for signing tokens, keep it safe or
# people will be able to forge tokens
secret_key: 'some secret string' # CHANGE THIS!
Optionally, it can also contain more arguments. They are listed with their defaults here.
# the ID-generating service requires a worker ID from 0-15
# if you have multiple workers, set this accordingly
idgen_worker_id: 0
# mongodb connection information
mongodb_uri: 'mongodb://localhost'
mongodb_db: 'journal'
# recaptcha for the login page (default is testing)
recaptcha_site: '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI'
recaptcha_secret: '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe'
You may also wish to prepare for the upcoming settings, also listed with their defaults:
redis_uri: 'redis://localhost/0'
postgres_uri: 'postgres://localhost'
postgres_schema: 'public'
First and foremost, you're likely going to want a reverse proxy like Caddy or NGINX. I won't cover that part of the installation here, just be aware of it.
These proxies will also allow for much easier use of SSL.
Please insert the following headers correctly:
Host, X-Real-IP, X-Forwarded-For. Caddy has a proxy option called
transparent that will do this for you.
The default port binding is 8080, but this is configurable through both
the ports you choose to expose and with gunicorn arguments.
docker run \
-d --restart=unless-stopped \
-p 8080:8080 \ # depends on gunicorn arguments, default
-v=/full/path/to/your/config.yml:/app/config.yml:ro \
pandentia/journal:latest \
# [optional gunicorn arguments]
I highly recommend Watchtower for this task.
run-gunicorn.sh does most of the legwork for you here.
./run-gunicorn.sh # [optional gunicorn args]
git pull will update your instance to the newest version.
You should also restart your workers after this.
Content type
Image
Digest
Size
36.2 MB
Last updated
almost 8 years ago
docker pull pandentia/journal