Portainer Templates logo

Portainer Templates

Cryptofolio Cryptofolio

Container

DashboardCryptoFinance

Cryptofolio is an open-source, and self-hosted solution for tracking your cryptocurrency holdings. It features a web interface, an Android mobile app, and a cross-platform desktop application for Windows, macOS, and Linux.

Image details

Pulls: 213k
Architecture: amd64, arm64, arm/v7, arm/v5
Image size: 161 MB
User: xtrendence
Created: Mar 29, 2021
Updated: 4 years ago
Status: active

Source details

Stars: 365
Forks: 66
Language: JavaScript
License: AGPL-3.0
Updated: 2 years ago

Configuration

Type
Container
Platform
linux
Image
xtrendence/cryptofolio:latest
Ports
7280:80/tcp
Restart
always

Template by xneo1

Standalone Install

Select an install method, to see config/commands for deploying Cryptofolio

Installation method

Install on Portainer

Import all app templates into your Portainer instance, for easy 1-click deploys

  1. Ensure both Docker and Portainer are installed, and up-to-date
  2. Log into your Portainer web UI
  3. Under Settings → App Templates, paste the below URL
  4. Head to Home → App Templates, and the list of apps will show up
  5. Select Cryptofolio, fill in any config options, and hit Deploy

Template Import URL

https://raw.githubusercontent.com/Lissy93/portainer-templates/main/templates.json
Show Me demo

More install options in our documentation, or see xtrendence/cryptofolio for app-specific guidance.

Screenshot
This is just the API and web interface. If you want to use the Android mobile app, or the cross-platform (Windows, Linux, and macOS) desktop app, please take a look at the GitHub repository: https://github.com/Xtrendence/Cryptofolio.
Instructions
  1. Pull the image using the docker pull xtrendence/cryptofolio:latest command.
  2. Start the image using the docker run -p 8080:80 cryptofolio command.
  3. Go to localhost:8080/ in your browser (or localhost:8080/website/ if that doesn't work).
  4. Login using the default username and password "admin".

If docker run -p 8080:80 cryptofolio doesn't work, please use the docker image ls command to get the list of images, find the ID of the latest one, and run it using docker run -p 8080:80 ImageID which will create a container using the image ID directly rather than a tag.
If you get an error saying "Invalid JSON" even after refreshing the page following a login attempt or after letting it load for a few seconds, please do the following:
  1. Use docker ps -aq to find the ID of the running container.
  2. Use docker exec -it CONTAINER_ID /bin/bash to open a CLI in the container.
  3. Do chown -R www-data:www-data /var/www/html/.
  4. Try logging in again.

Serve Cryptofolio on your own domain behind Caddy, Nginx or Traefik. Fill in your domain and copy the result. It's a starting point, some apps need their own base URL or extra headers set too.

Proxying cryptofolio.example.com to http://cryptofolio:80

Add this to your Caddyfile

cryptofolio.example.com {
	reverse_proxy http://cryptofolio:80
}

Check the logs first

Nine times out of ten the logs tell you exactly what went wrong.

  • In Portainer, go to Containers, click the container, then Logs. Or run docker logs cryptofolio
  • Exit codes help too: 137 means killed, usually out of memory. 126 or 127 means the command inside the image is broken.

Port already in use

If deployment fails with "Bind for 0.0.0.0:7280 failed: port is already allocated", something else on your server is using that port.

  • Find what's using it: sudo ss -tlnp | grep :7280
  • Stop the other service, or pick a different host port. In 7280:80 only the left number is yours to change, the right one belongs to the app.

Running but the page won't load

The container is up but nothing appears in your browser.

  • Use your server's real IP: http://your-server-ip:7280. The 0.0.0.0 link Portainer shows isn't a real address.
  • Give it a minute after first deploy, cryptofolio can take a while to initialise.
  • Make sure your firewall allows the port, e.g. sudo ufw allow 7280

Image won't pull

Test the pull directly on the host: docker pull xtrendence/cryptofolio:latest

  • "manifest unknown" means the tag no longer exists. This template uses latest, so try pinning a specific version instead.
  • "toomanyrequests" is the Docker Hub rate limit. Log in with docker login to raise it.
  • "no space left on device" means a full disk. Reclaim space with docker system prune

"exec format error"

This means the image was built for a different CPU architecture than your server.

  • This image supports: amd64, arm64, arm/v7, arm/v5
  • Check yours with uname -m: x86_64 is amd64, aarch64 is arm64. Raspberry Pi and other ARM boards are the usual culprits.

Container keeps restarting

The always restart policy relaunches the app after every crash, so the real error can scroll past.

  • Check the logs right after a restart, the last few lines before it died are the useful ones.
  • Get the exit code with docker inspect cryptofolio --format '{{.State.ExitCode}}'
  • Still stuck? Redeploy once with the restart policy set to no so the failure stays visible.

Data disappears when the container is recreated

This template doesn't define any volumes, so everything cryptofolio saves lives inside the container and is lost on update or recreate.

  • Add a volume mapping for cryptofolio's data folder before storing anything you care about.

Raise an issue

Found something which isn't working as it should? Here's how to report it.

A single container

Cryptofolio runs as one container, the simplest kind of app here. Just the one image to pull and nothing else wired up alongside it.

The app image

An image is the app packed up ready to go, everything Cryptofolio needs bundled into one download. This template pulls xtrendence/cryptofolio:latest, which Docker fetches once (about 161 MB) and then starts your own copy from.

Where the image comes from

Docker pulls its images from registries, public libraries of ready-built apps. Cryptofolio's comes from Docker Hub, published by xtrendence.

Version tags

The bit after the colon in the image name is the version tag. Here it's latest, which always points at the newest build, so a redeploy can bump you to a newer release without you asking. Pin a specific tag if you would rather stay on one version.

Which machines it runs on

Every image is built for particular CPU types. This one ships for amd64, arm64, arm/v7, arm/v5, so it runs on both regular x86 servers and ARM boards like a Raspberry Pi.

Ports

A port is the door the app answers on. A mapping like 7280:80 means it's reachable on port 7280 of your server, where the left number is yours to change and the right one belongs to the app. Once it's running, open http://your-server-ip:7280 in a browser. It opens:

  • 7280:80, likely the web interface

No stored data

This template doesn't mount any storage, so whatever Cryptofolio writes stays inside the container and is wiped if it's recreated or updated. That's fine for something stateless, but add a volume before trusting it with anything you want to keep.

Restart policy

The restart policy here is always, so Docker brings Cryptofolio back up after a crash and again when the server reboots. Good for anything you want running around the clock. You can change this on the deploy screen. The choices are no (never restart), on-failure (only after a crash), unless-stopped (restart unless you stop it), and always (bring it back no matter what).

Networking

Nothing custom is set, so Cryptofolio sits on Docker's default bridge network: its own private space that reaches the outside world only through the ports it publishes.

Container name

Once it's deployed, Portainer names the container cryptofolio. That's what you'll spot in the containers list and use in commands like docker logs cryptofolio.

Platform

The platform is linux, the kind of system the container is built to run on. Docker and Portainer handle this on a normal Linux server.

Open source license

Cryptofolio is open source, released under the AGPL-3.0 license. In plain terms the code is out in the open, so you're free to run it and change it to fit what you need.

Portainer app templates

Zooming out, this whole page comes from a Portainer app template: a short recipe telling Portainer how to set Cryptofolio up. Add the template list to Portainer once, then deploying Cryptofolio is a click rather than a wall of config.