Compare commits
7 Commits
fd2c31c94a
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
b19b3f61f7
|
|||
|
547e81102a
|
|||
|
aeced5b918
|
|||
|
97b09b9ce4
|
|||
|
e470cac946
|
|||
|
42fcc03630
|
|||
|
7f6e236878
|
55
.gitea/workflows/ci.yaml
Normal file
55
.gitea/workflows/ci.yaml
Normal file
@@ -0,0 +1,55 @@
|
||||
# name: CI
|
||||
#
|
||||
# on:
|
||||
# push:
|
||||
# branches:
|
||||
# - main
|
||||
# pull_request: {}
|
||||
# workflow_dispatch: {}
|
||||
#
|
||||
# jobs:
|
||||
# release:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v4
|
||||
# with:
|
||||
# lfs: true
|
||||
#
|
||||
# - name: Setup QEMU
|
||||
# uses: docker/setup-qemu-action@v3
|
||||
#
|
||||
# - name: Setup docker buildx
|
||||
# uses: docker/setup-buildx-action@v3
|
||||
#
|
||||
# - name: Login to Container Registery
|
||||
# uses: docker/login-action@v3
|
||||
# with:
|
||||
# registry: git.housh.dev
|
||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
||||
# password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
#
|
||||
# - name: Extract metadata for Docker
|
||||
# id: meta
|
||||
# uses: docker/metadata-action@v5
|
||||
# with:
|
||||
# images: git.housh.dev/homelab/caddy-rogue-mini
|
||||
# tags: |
|
||||
# type=schedule
|
||||
# type=ref,event=branch
|
||||
# type=ref,event=pr
|
||||
# type=semver,pattern={{version}}
|
||||
# type=semver,pattern={{major}}.{{minor}}
|
||||
# type=semver,pattern={{major}}
|
||||
# type=sha
|
||||
# type=raw,value=latest
|
||||
#
|
||||
# - name: Build and push Docker image
|
||||
# uses: docker/build-push-action@v6
|
||||
# with:
|
||||
# context: .
|
||||
# file: ./Dockerfile
|
||||
# platforms: linux/arm64
|
||||
# push: true
|
||||
# tags: ${{ steps.meta.outputs.tags }}
|
||||
# labels: ${{ steps.meta.outputs.labels }}
|
||||
@@ -1,8 +1,8 @@
|
||||
FROM docker.io/library/caddy:2.9.1-builder as builder
|
||||
FROM docker.io/library/caddy:2.9.1-builder AS builder
|
||||
|
||||
RUN xcaddy build \
|
||||
--with github.com/caddy-dns/cloudflare
|
||||
|
||||
FROM docker.io/library/caddy:2.9.1-alpine
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||
COPY ./config/Caddyfile /etc/caddy/Caddyfile
|
||||
COPY ./config /etc/caddy
|
||||
|
||||
@@ -3,6 +3,7 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
# image: git.housh.dev/homelab/caddy-rogue-mini:latest
|
||||
container_name: caddy
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
@@ -18,7 +19,7 @@ services:
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
volumes:
|
||||
- ./config:/etc/caddy:z
|
||||
- ./config:/etc/caddy
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
networks:
|
||||
|
||||
@@ -3,18 +3,34 @@
|
||||
acme_dns cloudflare {env.CF_AUTH_TOKEN}
|
||||
}
|
||||
|
||||
po.roguemini.housh.dev {
|
||||
reverse_proxy purchase_orders:8080
|
||||
}
|
||||
*.roguemini.housh.dev {
|
||||
|
||||
legacy-po.roguemini.housh.dev, legacy-pos.roguemini.housh.dev {
|
||||
reverse_proxy po_app:5000
|
||||
}
|
||||
@console host console.roguemini.housh.dev
|
||||
handle @console {
|
||||
reverse_proxy https://192.168.50.4:9090 {
|
||||
transport http {
|
||||
tls_insecure_skip_verify
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dash.roguemini.housh.dev {
|
||||
reverse_proxy homarr:7575
|
||||
}
|
||||
@pos host po.roguemini.housh.dev
|
||||
handle @pos {
|
||||
reverse_proxy purchase_orders:8080
|
||||
}
|
||||
|
||||
snapp.roguemini.housh.dev {
|
||||
reverse_proxy snapp:3000
|
||||
@legacypos host legacy-po.roguemini.housh.dev
|
||||
handle @legacypos {
|
||||
reverse_proxy po_app:5000
|
||||
}
|
||||
|
||||
@homarr host dash.roguemini.housh.dev
|
||||
handle @homarr {
|
||||
reverse_proxy homarr:7575
|
||||
}
|
||||
|
||||
@snapp host snapp.roguemini.housh.dev
|
||||
handle @snapp {
|
||||
reverse_proxy snapp:3000
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user