diff --git a/caddy/Caddyfile b/caddy/Caddyfile deleted file mode 100644 index 6626076..0000000 --- a/caddy/Caddyfile +++ /dev/null @@ -1,3 +0,0 @@ -example.com { - reverse_proxy container-name:port -} \ No newline at end of file diff --git a/caddy/podman.sh b/caddy/podman.sh deleted file mode 100644 index 97032e5..0000000 --- a/caddy/podman.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -# Caddy Proxy (Podman script) -# Michi von Ah -# Link: https://github.com/michivonah/docker/tree/main/caddy - -# Make script executable: chmod +x podman.sh - -# Pod setup -podman network create caddy --ignore -podman pod create --name caddy --replace - -# Create directories & files -mkdir -p data -touch Caddyfile - -# Caddy -podman run --name caddy-proxy -d \ - --replace \ - --pod caddy \ - -p 80:80 \ - -p 443:443 \ - -v ./Caddyfile:/etc/caddy/Caddyfile:z,ro \ - -v ./data:/data:z,U \ - --restart always \ - --network caddy \ - -u ${UID:-1000}:${GID:-1000} \ - docker.io/caddy - -# UID & GID should be set by default on most linux distros, so you don't have to change it here. -# Add another container to the caddy network: --network caddy \ No newline at end of file diff --git a/umami/docker-compose-traefik.yml b/umami/docker-compose-traefik.yml deleted file mode 100644 index 5a218a0..0000000 --- a/umami/docker-compose-traefik.yml +++ /dev/null @@ -1,40 +0,0 @@ -services: - umami: - image: ghcr.io/umami-software/umami:latest - #ports: - # - "3000:3000" - environment: - DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB} - DATABASE_TYPE: postgresql - APP_SECRET: ${APP_SECRET} - depends_on: - - db - restart: unless-stopped - labels: - - "traefik.enable=true" - - "traefik.http.routers.umami.entrypoints=web, websecure" - - "traefik.http.routers.umami.rule=Host(`analytics.example.com`)" - - "traefik.http.routers.umami.tls=true" - - "traefik.http.routers.umami.tls.certresolver=production" - - "traefik.docker.network=traefik_default" - networks: - - traefik - - umami - - db: - image: postgres:15-alpine - environment: - POSTGRES_DB: ${POSTGRES_DB} - POSTGRES_USER: ${POSTGRES_USER} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} - volumes: - - ./db:/var/lib/postgresql/data - restart: unless-stopped - networks: - - umami - -networks: - umami: - traefik: - name: traefik_default - external: true \ No newline at end of file diff --git a/umami/example.env b/umami/example.env deleted file mode 100644 index a1988c1..0000000 --- a/umami/example.env +++ /dev/null @@ -1,4 +0,0 @@ -APP_SECRET=random-secret -POSTGRES_DB=umami -POSTGRES_USER=umami -POSTGRES_PASSWORD=random-password \ No newline at end of file diff --git a/umami/podman.sh b/umami/podman.sh deleted file mode 100644 index b88e321..0000000 --- a/umami/podman.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -# Umami (Podman script) -# Michi von Ah -# Link: https://github.com/michivonah/docker/tree/main/umami -# Script depends on existing caddy proxy with network caddy - -# Make script executable: chmod +x podman.sh - -# Environment variables -set -a -source .env -set +a - -# Pod setup -podman network create umami --ignore -podman pod create --name umami --replace - -# Create directories & files -mkdir -p db - -# Containers -podman run --name umami-app \ - --replace \ - --pod umami \ - -d \ - --restart always \ - --net umami \ - --net caddy \ - -e DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@umami-db:5432/${POSTGRES_DB} \ - -e DATABASE_TYPE=postgresql \ - -e APP_SECRET=${APP_SECRET} \ - -u ${UID:-1000}:${GID:-1000} \ - ghcr.io/umami-software/umami:latest - -podman run --name umami-db \ - --replace \ - --pod umami \ - -d \ - --restart always \ - --net umami \ - -e POSTGRES_DB=${POSTGRES_DB} \ - -e POSTGRES_USER=${POSTGRES_USER} \ - -e POSTGRES_PASSWORD=${POSTGRES_PASSWORD} \ - -v ./db:/var/lib/postgresql/data:z,U \ - -u ${UID:-1000}:${GID:-1000} \ - docker.io/postgres:15-alpine