Skip to content

Docker for Rattic DB with Alpine Linux, Nginx and uWSGi

License

Notifications You must be signed in to change notification settings

captnbp/docker-ratticdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

captnbp/docker-ratticdb

RatticDB for Docker with a Postgresql DB, Nginx and uWSGI above a small Alpine Linux

NOTE: SSL is not activated as this Docker is intended to be behind a SSL Proxy like Nginx for example.

TODO

  • Add LDAP configuration
  • Fix init DB issue

Build

docker build -t $USER/ratticdb:1.3.1 .

First run

For the first run, you need to :

docker network create -d bridge ratticdb

Run the DB

docker run -d \
  --net=ratticdb \
  --name 'ratticdb-postgres' \
  -e POSTGRES_USER=ratticdb \
  -e POSTGRES_PASSWORD=changeme \
  -e POSTGRES_DB=ratticdb \
  -v /src/ratticdb/postgresql:/var/lib/postgresql/data \
  postgres

Init the DB

docker run --rm=true \
  --name 'ratticdb' \
  --net=ratticdb \
  -e 'DB_HOST=ratticdb-postgres' \
  -e 'DB_PORT=5432' \
  -e 'DB_USER=ratticdb' \
  -e 'DB_PASSWORD=changeme' \
  -e 'DB_NAME=ratticdb' \
  -e 'TIMEZONE=UTC' \
  -e 'VIRTUAL_HOST=somedomain.example.com' \
  -e 'SECRETKEY=someverysecretkeyforsessions' \
  -e 'MAIL_HOST=smtp.example.com' \
  -e 'MAIL_PORT=587' \
  -e '[email protected]' \
  -e 'MAIL_PASSWORD=someemailpassword' \
  -e '[email protected]' \
  -e 'MAIL_ENABLE_TLS=true' \
  $USER/ratticdb:1.3 init

Run RatticDB

docker run -d \
  --name 'ratticdb' \
  --net=ratticdb \
  -e 'DB_HOST=ratticdb-postgres' \
  -e 'DB_PORT=5432' \
  -e 'DB_USER=ratticdb' \
  -e 'DB_PASSWORD=changeme' \
  -e 'DB_NAME=ratticdb' \
  -e 'TIMEZONE=UTC' \
  -e 'VIRTUAL_HOST=somedomain.example.com' \
  -e 'SECRETKEY=someverysecretkeyforsessions' \
  -e 'MAIL_HOST=smtp.example.com' \
  -e 'MAIL_PORT=587' \
  -e '[email protected]' \
  -e 'MAIL_PASSWORD=someemailpassword' \
  -e '[email protected]' \
  -e 'MAIL_ENABLE_TLS=true' \
  $USER/ratticdb:1.3.1

About

Docker for Rattic DB with Alpine Linux, Nginx and uWSGi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published