so it begins
This commit is contained in:
commit
8d5d69f4c1
2 changed files with 50 additions and 0 deletions
17
Caddyfile
Normal file
17
Caddyfile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
email admin@sigd.net
|
||||
acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
||||
}
|
||||
|
||||
gitea.sigd.net {
|
||||
reverse_proxy gitea:3000
|
||||
}
|
||||
|
||||
deafgain.sigd.net {
|
||||
reverse_proxy deafgain-website:804
|
||||
}
|
||||
|
||||
finlion.sigd.net {
|
||||
reverse_proxy finlion-website:805
|
||||
}
|
||||
|
||||
33
docker-compose.yml
Normal file
33
docker-compose.yml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:latest
|
||||
container_name: caddy
|
||||
ports:
|
||||
- "443:443"
|
||||
- "443:443/udp"
|
||||
- "80:80"
|
||||
volumes:
|
||||
- /docker/caddy/data:/data
|
||||
- /docker/caddy/config:/config
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
networks:
|
||||
- caddy_network
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- CADDY_INGRESS_NETWORKS=caddy_network
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 512M
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "http://localhost:80"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
networks:
|
||||
caddy_network:
|
||||
external: true
|
||||
|
||||
Loading…
Add table
Reference in a new issue