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 \
|
RUN xcaddy build \
|
||||||
--with github.com/caddy-dns/cloudflare
|
--with github.com/caddy-dns/cloudflare
|
||||||
|
|
||||||
FROM docker.io/library/caddy:2.9.1-alpine
|
FROM docker.io/library/caddy:2.9.1-alpine
|
||||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
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:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
# image: git.housh.dev/homelab/caddy-rogue-mini:latest
|
||||||
container_name: caddy
|
container_name: caddy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
@@ -18,7 +19,7 @@ services:
|
|||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/etc/caddy:z
|
- ./config:/etc/caddy
|
||||||
- caddy_data:/data
|
- caddy_data:/data
|
||||||
- caddy_config:/config
|
- caddy_config:/config
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -3,18 +3,34 @@
|
|||||||
acme_dns cloudflare {env.CF_AUTH_TOKEN}
|
acme_dns cloudflare {env.CF_AUTH_TOKEN}
|
||||||
}
|
}
|
||||||
|
|
||||||
po.roguemini.housh.dev {
|
*.roguemini.housh.dev {
|
||||||
|
|
||||||
|
@console host console.roguemini.housh.dev
|
||||||
|
handle @console {
|
||||||
|
reverse_proxy https://192.168.50.4:9090 {
|
||||||
|
transport http {
|
||||||
|
tls_insecure_skip_verify
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@pos host po.roguemini.housh.dev
|
||||||
|
handle @pos {
|
||||||
reverse_proxy purchase_orders:8080
|
reverse_proxy purchase_orders:8080
|
||||||
}
|
}
|
||||||
|
|
||||||
legacy-po.roguemini.housh.dev, legacy-pos.roguemini.housh.dev {
|
@legacypos host legacy-po.roguemini.housh.dev
|
||||||
|
handle @legacypos {
|
||||||
reverse_proxy po_app:5000
|
reverse_proxy po_app:5000
|
||||||
}
|
}
|
||||||
|
|
||||||
dash.roguemini.housh.dev {
|
@homarr host dash.roguemini.housh.dev
|
||||||
|
handle @homarr {
|
||||||
reverse_proxy homarr:7575
|
reverse_proxy homarr:7575
|
||||||
}
|
}
|
||||||
|
|
||||||
snapp.roguemini.housh.dev {
|
@snapp host snapp.roguemini.housh.dev
|
||||||
|
handle @snapp {
|
||||||
reverse_proxy snapp:3000
|
reverse_proxy snapp:3000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user