matrix-docker-ansible-deploy Docker & Self-Hosted Deployment

GitHub

Matrix (An open network for secure, decentralized communication) server setup using Ansible and Docker

RAW Compose
1. Pull Image (DOCKERHUB) docker pull library/caddy
2. Docker Run (1-Click Launch) docker run -d --name matrix-docker-ansible-deploy -p 80:80 --restart always caddy:2.5.1-alpine
3. Podman Run podman run -d --name matrix-docker-ansible-deploy -p 80:80 --restart always caddy:2.5.1-alpine
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/library/caddy:2.5.1-alpine
5. ORAS Pull (OCI Artifact) oras pull caddy:2.5.1-alpine
6. Compose Deployment docker compose up -d
examples/reverse-proxies/caddy2-in-container/docker-compose.yaml
Download .yml
# SPDX-FileCopyrightText: 2024 MDAD project contributors
# SPDX-FileCopyrightText: 2024 Suguru Hirahara
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---
version: "3.9"

services:
  caddy:
    image: caddy:2.5.1-alpine
    networks:
      # add this, so that caddy can talk to the playbook-managed-traefik
      - traefik
    ports:
      - "80:80"
      - "443:443"
      - "8448:8448"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile
      # - ./site:/var/www
      # Other configurations โ€ฆ

networks:
  # add this as well
  traefik:
    name: traefik
    external: true