Self-hostingPlatforms
Portainer
Short version
Section titled "Short version"A Docker machine managed by Portainer, and a domain that points at it or its IP address.
Add a stack from compose.yaml with one line changed, and load fluxer.env as its environment variables. It takes about 10 minutes.
What this changes
Section titled "What this changes"- One Portainer stack called
fluxer, with one container calledfluxer-fluxer-1and one Docker volume calledfluxer-data. Removing the volume under Volumes deletes every message, upload and key. - Ports 80 and 443 on TCP, 443 on UDP, 7881 on TCP and 7882 on UDP.
Before you start
Section titled "Before you start"Check the requirements.
Download compose.yaml and fluxer.env from the latest release, and set FLUXER_DOMAIN in fluxer.env to your domain.
Install
Section titled "Install"-
In Portainer, open your environment, then Stacks, and choose "Add stack".
Call it
fluxerand choose the web editor as the build method. -
Paste
compose.yamland change theenv_fileline tostack.env.compose.yaml env_file: stack.envPortainer writes the stack's environment variables to
stack.env. In proxy mode, also change the ports for a proxy or tunnel. -
Add this line to
fluxer.env, which makes the admin panel show the upgrade step for Portainer when a newer release is out and the release check is on.fluxer.env FLUXER_UPGRADE_ Portainer, set the image tag to {version} and update the stackCOMMAND= In Then, under "Environment variables", choose "Load variables from .env file" and pick your
fluxer.envfile from the computer you saved it on.The list now shows
FLUXER_DOMAINwith your domain as its value. -
Choose "Deploy the stack".
The first start pulls the image and takes a few minutes. Under Containers,
fluxer-fluxer-1shows as healthy. -
Print the setup token in the container's console, or on the Docker machine.
docker exec fluxer-fluxer-1 fluxerd setup-tokenOpen your domain and paste the token to create the first admin account.
Upgrade
Section titled "Upgrade"Edit the stack, change the tag on the image line to the new version and update the stack. Fluxer backs itself up before every upgrade.
Keep a version number on the image line, so you choose when Fluxer upgrades.