Skip to content
Mohammad Awadallah
All posts

A Docker UI or Compose files in Git? The real question is where your config lives

Portainer, Dockge and Arcane make it easy to see and restart containers, but they hold the Docker socket and can trap your configuration inside them. A practical way to keep Git as the source of truth and the UI as a window.

7 min readAlso in:العربيةFrançais

On November 10, 2026, XDA Developers ran a piece by a home-lab owner with a lot of containers, explaining why he moved from Portainer and Dockge to Arcane. His reasons are practical: one interface to see containers, their logs and resource use, to edit the Compose file and environment variables side by side, and to see which images have updates.

Comparing the three tools is useful, but there is a bigger question behind it: where does your services’ configuration live? In plain files you keep in Git, review and restore, or inside a tool’s database that you can only read through its own UI?

What a UI actually gives you

A UI is not a luxury. It earns its place in four clear situations:

  • State at a glance: which container is stopped, which one is eating memory.
  • Logs: opening a service’s log without remembering the container name.
  • Quick restarts: when a service hangs and you are away from your desk.
  • People who don’t live in a terminal: a colleague who needs to restart a service without learning docker compose.

If any of these comes up often, a UI saves real time. The problem is not that it exists, but what it takes in return.

Where the Compose file lives in each tool

This is the difference that should decide the choice.

Dockge (MIT licence): its repository says plainly that it does not take over your Compose files; they stay on your drive as usual, and you can still run them with normal docker compose commands. The default directory is /opt/stacks, with each project at /opt/stacks/<name>/compose.yaml. For existing projects, you move the file into that directory and use the scan-folder option. One install rule matters: the stacks path inside the container must match the path on the host.

Arcane (BSD-3-Clause licence): each project is a folder holding the Compose file and an .env file inside the “projects directory”, which defaults to /app/data/projects and can be changed with PROJECTS_DIRECTORY. It scans that directory and its subfolders, so projects created outside Arcane show up too. Its own data goes into a SQLite file by default. It also has Git Sync in two directions: pull a Compose file from a repository (the file then becomes read-only in the UI, so edits happen in Git), or push the project’s files to a repository as a backup.

Portainer CE (zlib licence): it stores each stack’s Compose file in a compose folder inside its /data volume, in a subfolder for that stack, while the stack record itself, including its environment variables and file path, sits in Portainer’s database. That is what its source code shows. It can also deploy a stack from a Git repository, with periodic polling or a webhook. For reference, the company offers Business Edition free for your first three nodes, one licence per organisation.

The short version: Dockge and Arcane read plain files from a directory you choose. Portainer keeps its own copy of the files inside its volume, and part of the configuration in its database.

Cost one: the UI owns the server

All three install the same way in their official examples: by mounting /var/run/docker.sock into the tool’s container. That is not a detail.

Docker’s documentation says the daemon requires root privileges and that only trusted users should control it, because Docker lets you mount the host’s / directory into a container, and that container can then alter the host filesystem without any restriction. The post-install page warns that the docker group grants root-level privileges.

In practice: whoever logs into your Docker UI owns the server. The UI password is effectively a root password. So:

  • Change the default password right away. Arcane, for example, ships with a default account and asks you to change its password on first sign-in.
  • Arcane’s docs suggest a socket proxy that only forwards the API calls you allow. That narrows the surface, but it does not make the tool harmless: a management tool has to create containers, and creating a container with the right mount is enough to reach the host.

Cost two: one more web app to patch and protect

Every UI is another web application, with its own vulnerabilities, updates and login page. Portainer, for instance, serves its UI over HTTPS on port 9443 with a self-signed certificate by default. An app with this much power has no business on the public internet.

Cost three: configuration drifts quietly

When you change a variable from the UI in the middle of the night to fix an outage, where is that change recorded? If the tool keeps it in its database, nobody will know what changed or why, and you will only get it back if you have a backup of the tool’s own data. A few months later, the server is the only documentation of its own configuration.

The recommendation: Git is the source of truth, the UI is a window

1. Keep your Compose files in a Git repository. One folder per service, an .env.example with no secrets, and the real .env kept out of Git. An example layout:

compose-stacks/
├── README.md
├── .gitignore          # ignore .env and */data/
├── proxy/
│   ├── compose.yaml
│   └── .env.example
├── nextcloud/
│   ├── compose.yaml
│   └── .env.example
└── monitoring/
    ├── compose.yaml
    └── prometheus.yml

An update then becomes: edit, commit, and on the server git pull followed by docker compose up -d in the service’s folder.

2. If you want a UI, pick one that reads these files as they are. Put the repository checkout in the directory the tool reads: /opt/stacks for Dockge, or the path you set in PROJECTS_DIRECTORY for Arcane. The hidden benefit is that any edit made from the UI shows up immediately in git status and git diff, so drift is no longer silent. In Arcane, pull mode from Git blocks editing the Compose file from the UI altogether.

3. Keep the UI off the public internet. Reach it through a VPN, or through an access gateway that checks identity before any request reaches the login page. One layer protects the most dangerous app on the server.

4. Make updates a decision, not a surprise. Pin every image: the Compose image format accepts a tag such as :1.4.2 or a digest such as @sha256:.... Note that Arcane’s own official install example uses :latest, so pin a specific version instead. Then tell two kinds of tools apart:

  • Update checkers tell you a newer image exists, and the decision is yours. Arcane’s Image Update Watcher checks hourly by default.
  • Auto-updaters pull the image and restart the container on their own. In Arcane this is an option you turn on yourself, and you can exclude a container with the label com.getarcaneapp.arcane.updater=false. Watchtower, the best-known tool of this kind, had its repository archived on December 17, 2025 and is no longer maintained; its README does not recommend it for commercial or production environments.

A simple rule: anything that holds data, such as a database, is never auto-updated. Read the release notes, change the tag in Git, then deploy.

When you don’t need a UI at all

If you work alone, run a handful of services and SSH into the server regularly, docker compose ps and docker compose logs -f give you most of what a UI does, without an extra app holding root-level power. A UI earns its place when there are several people or several servers, or when you need to fix things from your phone.

The bottom line

It matters less whether you pick Portainer, Dockge or Arcane. What matters is that the tool never becomes the only place your configuration lives. Keep your Compose files in Git, treat the UI as a window you read through rather than a vault that locks things in, keep it off the public internet, and pin versions so every update is a decision you made.