Skip to content

Draft: [WIP] Dockerize lufi for postgresql

Monsieur X requested to merge xgaia/lufi:dockerise into master

Dockerized Lufi

This will fix !87 (closed)

Dockerfile and docker-compose.yml files to deploy Lufi with postgres database.

All environments variables starting with LUFI__ are converted to config entries.

examples:

  • LUFI__INSTANCE_NAME=Luuuufi is converted to instance_name => 'Luuuufi
  • LUFI__PGDB__DATABASE=lufi is converted to pgdp => { database => 'lufi'}

See docker-compose.yml for more examples.

Usage

build

docker build -t lufi .

Run

docker-compose up -d

Enjoy Lufi at localhost:8081

Things to do/improve

  • Working Dockerfile
  • Create config from ENV
  • SMTP config
  • cron jobs
  • lufi logs when docker-compose logs -f
Edited by Monsieur X

Merge request reports