Menu

Build a Reliable Self-Hosted Stack with Docker Compose
📰

Build a Reliable Self-Hosted Stack with Docker Compose

DEV Community: docker·FlatlinerAtheist | CLI-NERDS·14 days ago
#xAEdvmnP
#devtodocker#devto#dev#docker#compose
Reading 0:00
15s threshold

Most self-hosting trouble shows up months after the first docker compose up : an image pull brings in a PostgreSQL version that cannot read your data, container logs fill the disk, or a backup you never tested will not restore. This guide builds a small stack with Caddy for HTTPS, Wiki.js as the application, and PostgreSQL for data. It then sets the stack up so updates can be rolled back and restores are tested before you need them.

Install Docker Engine and the Compose plugin

Install Docker Engine from Docker's own apt repository by following the install page for Ubuntu or Debian on docs.docker.com. The packages are docker-ce , docker-ce-cli , containerd.io , docker-buildx-plugin , and docker-compose-plugin . Confirm Compose v2 is present:

docker compose version

Enter fullscreen mode

Exit fullscreen mode

Compose v2 is a Docker CLI plugin invoked as docker compose , with a space. The older Python docker-compose is no longer maintained, so translate commands from older guides.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.