Docker Compose
Run Supermetry and PostgreSQL together with Docker Compose, using the installer or the repository compose files, then check readiness.
Run Supermetry and PostgreSQL together with Docker Compose.
Use the installer
Section titled “Use the installer”-
Download the installer and choose whether to download the release image or build it locally:
Terminal window curl -fsSLO https://github.com/velixio/supermetry/releases/latest/download/install.shsh install.sh --yes --mode docker --base-url https://analytics.supermetry.com --listen 127.0.0.1:8787 --proxy none --image download --dir /opt/supermetryReplace
--image downloadwith--image buildto fetch the release source and build the image locally.Add
--dry-runto print the files,docker composecommands and proxy changes the installer would make, without changing anything. -
Open
https://analytics.supermetry.com/appand create the admin account.
What you should see: the supermetry and postgres services are running and the installer prints the dashboard URL.
Use the repository Compose file
Section titled “Use the repository Compose file”-
Clone the release source and create the environment file:
Terminal window git clone https://github.com/velixio/supermetry.gitcd supermetrycp .env.example .envsecret_key="$(openssl rand -base64 32)"postgres_password="$(openssl rand -base64 32)"sed -i.bak "s|^SUPERMETRY_BASE_URL=.*|SUPERMETRY_BASE_URL=http://localhost:8787|; s|^SUPERMETRY_SECRET_KEY=.*|SUPERMETRY_SECRET_KEY=${secret_key}|" .envprintf '\nPOSTGRES_PASSWORD=%s\n' "$postgres_password" >> .env -
Start Supermetry with the bundled
postgres:18-alpineservice:Terminal window docker compose -f deploy/docker-compose.yml --profile bundled-db up -d --buildTo use an external PostgreSQL database instead, set
SUPERMETRY_DATABASE_URLin.envand run:Terminal window docker compose -f deploy/docker-compose.yml up -d --build
What you should see: docker compose -f deploy/docker-compose.yml ps shows the application running on 127.0.0.1:8787.