Skip to content

LeonStoldt/ghostfolio-installer

Repository files navigation

Ghostfolio-installer

Ansible Playbook for Ghostfolio

Ansible Docker GitHub

Ansible Playbook for setting up ghostfolio (e.g. on Unraid)

Requirements

As the docker image is based on willhallonline/ansible, check compatibility first. Currently used docker base image version can be found in the release workflow and information about OS compatibility can be found here. If you need support for different/older OS, just create an issue or PR and we'll provide a new image.

Ways of installation

1. Docker run (preferred)

Run ghostfolio-installer via docker

docker run --rm \
    -v /path/to/ghostfolio/dir:/ghostfolio \
    -v /var/run/docker.sock:/var/run/docker.sock \
    leonstoldt/ghostfolio-installer

Run with custom variables:

docker run --rm \
    -e POSTGRES_PORT=5432 \
    -e REDIS_PW="" \
    -e POSTGRES_DB=ghostfolio-db \
    -e POSTGRES_USER=ghostfolio \
    -e POSTGRES_PW=postgresPw \
    -e ACCESS_TOKEN_SALT=accessTokenSalt \
    -e JWT_SECRET=jwtSecret \
    -v /path/to/ghostfolio/dir:/ghostfolio \
    -v /var/run/docker.sock:/var/run/docker.sock \
    leonstoldt/ghostfolio-installer

2. Run ansible playbook manually

Prerequisite: clone the repository first!

  • call ansible playbook with variables:
GHOSTFOLIO_DIR=/path/to/ghostfolio/dir \
POSTGRES_PORT=5432 \
REDIS_PW="" \
POSTGRES_DB=ghostfolio-db \
POSTGRES_USER=ghostfolio \
POSTGRES_PW=postgresPw \
ACCESS_TOKEN_SALT=accessTokenSalt \
JWT_SECRET=jwtSecret \
ansible-playbook /ansible/playbooks/install-ghostfolio.yml

Contributions

If you would like to improve this playbook, do not hesitate to create an issue or a pull request.