Sign inSign up

leonstoldt/ghostfolio-installer

By leonstoldt

•Updated 5 months ago

Image
0

9.3K

leonstoldt/ghostfolio-installer repository overview

⁠Ghostfolio-installer

⁠Ansible Playbook for Ghostfolio

Ansible Docker GitHub

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

⁠Prerequisites / Pre-Checks

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.

⁠How to install / Getting started

⁠1. Docker run (preferred)

Run ghostfolio-installer via docker (without env variables, it uses default values from Dockerfile⁠)

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

It is highly recommended to adjust the variables and bootstrap ghostfolio with custom variables:

docker run --rm \
    -e REDIS_PW="R3DIS_s3cret!" \
    -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

More configuration options can be found below (#Configuration⁠).

⁠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="R3DIS_s3cret!" \
POSTGRES_DB=ghostfolio-db \
POSTGRES_USER=ghostfolio \
POSTGRES_PW=postgresPw \
ACCESS_TOKEN_SALT=accessTokenSalt \
JWT_SECRET=jwtSecret \
ansible-playbook /ansible/playbooks/install-ghostfolio.yml

⁠Configuration / Docker Environment Variables

Env_Variablerequired to change?recommended to change?information
GHOSTFOLIO_DIR:heavy_check_mark::heavy_check_mark:/path/to/ghostfolio/dir should point to your ghostfolio data persistence location
REDIS_PW:x::heavy_check_mark:you should provide a custom redis password for better security
POSTGRES_PW:x::heavy_check_mark:you should provide a custom postgres password for better security
ACCESS_TOKEN_SALT:x::heavy_check_mark:you should provide a custom, random access token salt for better security
JWT_SECRET:x::heavy_check_mark:you should provide a custom, random jwt secret for better security
POSTGRES_PORT:x::x:only change port if you have conflicting ports or you know what you are doing
POSTGRES_DB:x::x:only change the database name if you know what you are doing
POSTGRES_USER:x::x:only change the user if you know what you are doing

⁠Contributions

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

Tag summary

Content type

Image

Digest

sha256:f6d75bde6…

Size

148.3 MB

Last updated

5 months ago

docker pull leonstoldt/ghostfolio-installer