Skip to content

Commit

Permalink
boiler and initial 👍
Browse files Browse the repository at this point in the history
  • Loading branch information
SamEureka committed Mar 15, 2022
1 parent afe10a9 commit d935422
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
Empty file added balena.yml
Empty file.
17 changes: 17 additions & 0 deletions caddy/Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
acme_dns {$DNS_PROVIDER} {$DNS_API_KEY}
}

*.code.sameureka.com {
reverse_proxy 192.168.86.53:8080
}

atlassian.sameureka.com {
reverse_proxy /jira/* 192.168.86.68:8100
reverse_proxy /wiki/* 192.168.86.68:8090
reverse_proxy /bit/* 192.168.86.68:7990
}

node.sameureka.com {
reverse_proxy 192.168.86.68:1880
}
8 changes: 8 additions & 0 deletions caddy/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## balenaCaddy/caddy/Dockerfile.template ##
## Sam Dennon//2022 ##
FROM caddy:2.4.6-builder-alpine AS builder
RUN xcaddy build \
--with github.com/caddy-dns/${DNS_PROVIDER}
FROM caddy:2.4.6-alpine
COPY . .
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
24 changes: 24 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: "2.1"

services:
caddy:
build: ./caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- $PWD/site:/srv
- caddy_data:/data
- caddy_config:/config
network_mode: host
privileged: true
labels:
io.balena.features.dbus: 1
environment:
DNS_PROVIDER: digitalocean

volumes:
caddy_data:
caddy_config:

0 comments on commit d935422

Please sign in to comment.