Configure your fresh installation of Firefly-III with some default values.
1.1K
This docker container gives you the possibility to configure Firefly-III with some default values after you have a fresh installation. Basically you can add anything which the Firefly-III API provides like
To use the REST API of Firefly-III you need a personal access token. You can create a token as described in the official Firefly-III documentation.
Next you have to provide the necessary details in the configuration file in json format. An example is provided in this repo here. It looks like this:
{
"settings": {
"host": "http://firefly:8080", // <<< this is the URL to your Firefly-III installation
"token": "VeryLongSecretToken" // <<< this is your personal access token
},
"accounts": {
"url": "/api/v1/accounts",
"accounts": [ // <<< here you can create accounts
{
"name": "Bank Account", // <<< just fill in all details you want
"type": "asset",
"iban": "DE01234567890123456789",
"bic": "ABCDEFGHIJK",
"account_number": "0123456789",
"opening_balance": "0",
"opening_balance_date": "2020-01-01",
"virtual_balance": "0",
"currency_code": "EUR",
"order": 1,
"account_role": "sharedAsset"
}, // <<< if you want to load more than one account, separate each account with a comma
{
"name": "Credit Card Account",
"type": "asset",
"iban": "DE01234567890123456789",
"bic": "ABCDEFGHIJK",
"account_number": "0123456789",
"opening_balance": "0",
"opening_balance_date": "2020-01-01",
"virtual_balance": "0",
"currency_code": "EUR",
"order": 2,
"account_role": "ccAsset",
"credit_card_type": "monthlyFull",
"monthly_payment_date": "2020-01-01"
}
]
}, // <<< if you want to load other
"categories": { // <<< here you can create accounts
"url": "/api/v1/categories",
"categories": [
{
"name": "Category1",
"notes": ""
},
{
"name": "Category2",
"notes": ""
}
]
}
}
Adjust the file for your needs and save it as init.json.
After you've create the configuration file, you can simply pull and run the container.
docker run -d \
-v /path/to/your/init.json:/configuration/init.json:ro \
martinspaniol/firefly-iii-init:latest
version: '3.3'
services:
ffinit:
image: martinspaniol/firefly-iii-init:latest
networks:
- firefly_iii
restart: "no"
volumes:
- /path/to/your/init.json:/configuration/init.json:ro
Content type
Image
Digest
sha256:98477bdc9…
Size
28.4 MB
Last updated
over 1 year ago
docker pull martinspaniol/firefly-iii-init