initial commit

This commit is contained in:
hoostine 2024-05-03 01:42:31 -05:00
commit 579e385dce
3 changed files with 51 additions and 0 deletions

4
Caddyfile Normal file
View File

@ -0,0 +1,4 @@
:3001 {
bind 10.0.20.253
reverse_proxy 10.0.20.3:8989
}

43
docker-compose.yml Normal file
View File

@ -0,0 +1,43 @@
services:
caddy:
build:
context: .
dockerfile_inline: |
FROM caddy:2.7.6-builder AS builder
RUN xcaddy build \
--with github.com/caddy-dns/route53@v1.3.3 \
--with github.com/lucaslorentz/caddy-docker-proxy/v2@v2.8.11
FROM caddy:2.7.6
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
restart: unless-stopped
environment:
- AWS_ACCESS_KEY_ID=AKIA...
- AWS_SECRET_ACCESS_KEY=asdf...
networks:
- caddy
- caddy-ext
ports:
- "10.0.20.253::3001"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./site:/srv
- caddy_data:/data
- caddy_config:/config
networks:
caddy:
caddy-ext:
driver: ipvlan
ipam:
config:
- subnet: 10.0.20.0/24
gateway: 10.0.20.1
ip_range: 10.0.20.253/32
volumes:
caddy_data:
caddy_config:

4
site/index.html Normal file
View File

@ -0,0 +1,4 @@
<html>
<head><title>Success!</title></head>
<body><p>It seems to work.</p></body>
</html>