Levelrail
Skip to content

Self-host SparkyFitness with Docker ​

A fitness tracker for nutrition, exercise, and body measurements.

This page describes the Levelrail template for SparkyFitness (Productivity). It deploys the services below as one Docker Compose app on your own server.

Project site: https://codewithcj.github.io/SparkyFitness/.

Recommended memory: about 512 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
postgrespostgres:16-alpinenone
postgres_data -> /var/lib/postgresql/data
sparkyfitness-frontendcodewithcj/sparkyfitness:v1.6.180none
sparkyfitness-servercodewithcj/sparkyfitness_server:v1.6.1nonenone

Environment variables ​

ServiceVariableValue
postgresPOSTGRES_DBPreset in the template
postgresPOSTGRES_PASSWORDGenerated at deploy
postgresPOSTGRES_USERPreset in the template
sparkyfitness-frontendSPARKY_FITNESS_SERVER_HOSTPreset in the template
sparkyfitness-frontendSPARKY_FITNESS_SERVER_PORTPreset in the template
sparkyfitness-serverBETTER_AUTH_SECRETGenerated at deploy
sparkyfitness-serverNODE_ENVPreset in the template
sparkyfitness-serverSPARKY_FITNESS_API_ENCRYPTION_KEYGenerated at deploy
sparkyfitness-serverSPARKY_FITNESS_APP_DB_PASSWORDGenerated at deploy
sparkyfitness-serverSPARKY_FITNESS_APP_DB_USERPreset in the template
sparkyfitness-serverSPARKY_FITNESS_DB_HOSTPreset in the template
sparkyfitness-serverSPARKY_FITNESS_DB_NAMEPreset in the template
sparkyfitness-serverSPARKY_FITNESS_DB_PASSWORDGenerated at deploy
sparkyfitness-serverSPARKY_FITNESS_DB_PORTPreset in the template
sparkyfitness-serverSPARKY_FITNESS_DB_USERPreset in the template
sparkyfitness-serverSPARKY_FITNESS_LOG_LEVELPreset in the template
sparkyfitness-serverTZPreset in the template

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy SparkyFitness with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select SparkyFitness. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy sparkyfitness --name my-sparkyfitness

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Productivity templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.