Adding caddy to DMZ
This commit is contained in:
12
Caddyfile
Normal file
12
Caddyfile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
email {$ACME_EMAIL}
|
||||||
|
acme_dns cloudflare {$CLOUDFLARE_API_TOKEN}
|
||||||
|
}
|
||||||
|
|
||||||
|
httptest.coldlightalchemist.com {
|
||||||
|
respond "Hello World"
|
||||||
|
}
|
||||||
|
|
||||||
|
git.coldlightalchemist.com {
|
||||||
|
reverse_proxy 10.26.48.3:8081
|
||||||
|
}
|
||||||
7
builds/caddy/Dockerfile
Normal file
7
builds/caddy/Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
FROM caddy:builder AS builder
|
||||||
|
|
||||||
|
RUN caddy-builder github.com/caddy-dns/cloudflare
|
||||||
|
|
||||||
|
FROM caddy:latest
|
||||||
|
|
||||||
|
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||||
@@ -1,6 +1,18 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
caddy:
|
||||||
|
build: "./builds/caddy/"
|
||||||
|
container_name: caddy
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
env_file: .caddy.env
|
||||||
|
volumes:
|
||||||
|
- "/root/infrastructure-compose/Caddyfile:/etc/caddy/Caddyfile"
|
||||||
|
- "caddy_data:/data"
|
||||||
|
- "caddy_config:/config"
|
||||||
velocity:
|
velocity:
|
||||||
image: eclipse-temurin:21
|
image: eclipse-temurin:21
|
||||||
restart: always
|
restart: always
|
||||||
@@ -21,13 +33,15 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- "/meshcentral/data:/opt/meshcentral/meshcentral-data"
|
- "/meshcentral/data:/opt/meshcentral/meshcentral-data"
|
||||||
- "/meshcentral/user_files:/opt/meshcentral/meshcentral-files"
|
- "/meshcentral/user_files:/opt/meshcentral/meshcentral-files"
|
||||||
- "/meshcentral_backups:/opt/meshcentral/meshcentral-backups"
|
- "/backup/meshcentral:/opt/meshcentral/meshcentral-backups"
|
||||||
bedrockconnect:
|
bedrockconnect:
|
||||||
image: pugmatt/bedrock-connect
|
image: pugmatt/bedrock-connect:latest
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "19132:19132/udp"
|
- "19132:19132/udp"
|
||||||
env_file: .bedrockconnect.env
|
env_file: .bedrockconnect.env
|
||||||
volumes:
|
volumes:
|
||||||
- "/root/bedrockconnect:/mnt"
|
- "/root/bedrockconnect:/mnt"
|
||||||
|
volumes:
|
||||||
|
caddy_data:
|
||||||
|
caddy_config:
|
||||||
|
|||||||
Reference in New Issue
Block a user