Skip to content

Instantly share code, notes, and snippets.

@ArtisKrumins
Last active June 21, 2023 03:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArtisKrumins/ccb24f31d6d4872b57e7c9343a9d1bf0 to your computer and use it in GitHub Desktop.
Save ArtisKrumins/ccb24f31d6d4872b57e7c9343a9d1bf0 to your computer and use it in GitHub Desktop.
Firefly III setup with Lando

Steps to run Firefly III with Lando

  1. Install Lando
  2. Create new folder: mkdir [name] and go to this directory cd [name]
  3. Create Lando config file: (vim .lando.yml) and paste content below and save:
name: firefly
recipe: lamp
config:
  php: '8.2'
  webroot: firefly/public
  xdebug: false
  database: postgres
tooling:
  artisan:
    service: appserver
    description: artisan command
    cmd: php /app/firefly/artisan
  init-firefly:
    service: appserver
    description: setup firefly
    cmd: composer create-project grumpydictator/firefly-iii --no-dev --prefer-dist firefly 5.7.18
services:
  appserver:
    build_as_root:
      - apt-get update -y
      - apt-get install locales locales-all -y
  1. Start Lando lando start
  2. Setup Firefly application with lando init-firefly
  3. Setup up Firefly database access by editing firefly/.env.
DB_CONNECTION=pgsql
DB_HOST=database
DB_PORT=5432
DB_DATABASE=lamp
DB_USERNAME=postgres
DB_PASSWORD=
  1. Initialize the database
lando artisan migrate:refresh --seed
lando artisan firefly-iii:upgrade-database
lando artisan passport:install
  1. That's it. Go to http://firefly.lndo.site

SOME TIPS:

Depending on your setup: hosts file might need update to resolve firefly.lndo.site address

Firefly version is set in .lando.yml. Current stable is 5.7.18 so search for it to change/update

You can access database via lando psql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment