~/Blog

Brandon Rozek

Photo of Brandon Rozek

PhD Student @ RPI studying Automated Reasoning in AI and Linux Enthusiast.

Migrating from Docker Compose for Podman to Quadlets

Published on

Technology never stagnates. There’s always people working hard to improve the current status quo. While it might be annoying at times, it does keep life exciting.

The latest change, is that for systems where I use Podman containers, I now no longer use docker-compose but instead rely on Podman Quadlets which are managed by systemd. This means one less dependency on the docker toolchain, and we all accepted the systemd future by now right?

Mo wrote a blog post earlier this year outlining how they work. I won’t reiterate that great work so I encourage you to check it out. Instead, I’ll paste one systemd configuration file of a podman container for future me to easily reference.

Hedgedoc Container file at /etc/containers/systemd/hedgedoc.container

[Container]
ContainerName=hedgedoc
HostName=hedgedoc
Image=lscr.io/linuxserver/hedgedoc:1.9.9
AutoUpdate=registry
Volume=/home/rozek/Volumes/hedgedoc/config:/config
EnvironmentFile=/home/brozek/Volumes/hedgedoc/docker.env
IP=10.77.1.91
Network=rozeknet

[Unit]
Requires=hedgedoc_database.service
After=hedgedoc_database.service

[Service]
Restart=always

[Install]
WantedBy=default.target
Reply via Email Buy me a Coffee
Was this useful? Feel free to share: Hacker News Reddit Twitter

Published a response to this? :