Moving from Portainer to Arcane
If you built your own NVR with Portainer as the container manager, this guide moves it over to Arcane, the container manager the LAN Foundry stack uses. Your containers, volumes, recordings, and configuration files stay where they are. What changes is which tool deploys and manages them.
Portainer is discontinuing its free Community Edition, so this is worth doing before you depend on it for updates.
Argus systems ship with Arcane already in place. This guide is for systems you set up yourself.
Before you start
This guide assumes:
- You can SSH into the NVR and run
dockercommands withsudoor as a member of thedockergroup - Your services (Frigate, Caddy, ntfy, and so on) are deployed as Portainer stacks, or as individual containers you know the settings for
- You're using Caddy and local DNS as described in the Caddy reverse proxy guide and the OPNsense DNS guide. If you aren't, skip the Caddy and DNS steps.
Plan for a short outage per service while you move it. Recording stops while Frigate is down.
Back up first. See Backing up your Frigate configuration.
How the move works
Portainer keeps each stack's compose file inside its own data volume. Arcane works from plain folders on disk instead: every folder under its projects directory with a compose file in it is a project. Arcane scans that directory and lists any projects it finds, including ones you created by hand.
So the move is:
- Copy each Portainer stack's compose file into its own folder under
/opt/lanfoundry/stacks/. - Start Arcane pointed at that folder.
- Stop each service in Portainer and start it again from Arcane.
- Point Caddy and DNS at Arcane, then remove Portainer.
Volumes and bind mounts aren't touched at any step, so data carries over.
Step 1 — Copy your stacks out of Portainer
For each stack in Portainer:
- Go to Stacks and click the stack name.
- Open the Editor tab and copy the full compose file.
- Note any Environment variables set on the stack in Portainer. These are stored separately from the compose file.
On the NVR, create a folder per stack and save the compose file there:
If the stack had environment variables in Portainer, put them in a .env file in the same folder:
Repeat for every stack. Use the stack name as the folder name, since Arcane names each project after its folder.
Pulling the files straight from Portainer's volume
If you have many stacks, Portainer's copies live on the host inside its data volume, one numbered folder per stack:
Each numbered folder holds that stack's docker-compose.yml. The numbers don't tell you which stack is which, so open each file to check before copying it.
Check relative paths. Portainer runs compose from inside its own data folder, so a bind mount like ./config:/config in a Portainer stack points somewhere inside Portainer's volume. Replace relative paths with the absolute host paths your data actually lives at (for example /opt/lanfoundry/config/frigate:/config). If you're unsure where a mount points, check the running container:
sudo docker inspect frigate --format '{{ range .Mounts }}{{ .Source }} -> {{ .Destination }}{{ "\n" }}{{ end }}'
If you ran any containers with docker run instead of a stack, write a compose file for each one using the same image, ports, volumes, and network settings. Portainer's container detail page shows the current settings.
Step 2 — Deploy Arcane
Arcane runs alongside Portainer during the move, on its own port (3552), so nothing conflicts.
Generate an encryption key and keep a copy of it with your backups:
Create Arcane's own project folder:
Paste the compose service from About the stack, with your key in place of the ENCRYPTION_KEY placeholder. If your nvr-network doesn't exist yet, create it with sudo docker network create nvr-network first. If your Portainer setup used a different network name, use that name instead.
Start it:
Browse to http://<NVR IP>:3552 and sign in with username arcane and password arcane-admin. Arcane asks you to set a new password right away.
Go to Projects. Each folder you created in Step 1 should be listed. If one is missing, check that its compose file is named compose.yaml (or docker-compose.yml) and sits directly in its folder.
Step 3 — Move each service over
Move one service at a time and confirm it works before going on. Leave Caddy for last so you can keep reaching the other services by hostname while you work.
For each stack:
- In Portainer, open the stack and click Stop this stack.
- In Arcane, open the matching project under Projects and click Up.
- Confirm the containers show as running and the service works in your browser.
If Up fails with an error that a container name is already in use, Portainer left the stopped container behind. Remove it and try again:
docker rm removes the container only. Named volumes and bind-mounted folders stay in place. Don't add -v and don't run docker volume rm.
After Frigate moves, check that live view, recordings, and the event timeline all look normal before going on.
Step 4 — Point Caddy and DNS at Arcane
In your Caddyfile, replace the Portainer site block with:
Arcane serves plain HTTP on its backend, so it doesn't need the tls_insecure_skip_verify transport block Portainer used.
Then restart Caddy:
In OPNsense, edit the Portainer host override under Services, then Unbound DNS, then Overrides: change Host to arcane and the description to Arcane via Caddy. Save and apply. If you use a different DNS server or a hosts file, make the same change there.
Browse to https://arcane.internal to confirm.
Step 5 — Remove Portainer
Once every service is running from Arcane and you've been able to reach them all for a day or so, remove Portainer:
Its data volume still holds the original stack files. Keep it until you're confident you don't need them, then remove it:
Where to go from here
- Updating containers, for pulling new images through Arcane
- Backing up your Frigate configuration, to add
/opt/lanfoundry/stacks/and Arcane's encryption key to your backups - What to do when a container won't start, if a service doesn't come back up under Arcane
- About the stack, for why the stack uses Arcane and the other options considered
Was this page helpful?
Found something wrong or out of date? Let us know below, or open a GitHub issue if you have a GitHub account.