Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
Merge pull request #32 from LavenderFive/main
Browse files Browse the repository at this point in the history
Add Caddy server for dns registering
  • Loading branch information
blockpane authored Oct 4, 2022
2 parents 83bac73 + 1d22feb commit 9c1efee
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 7 deletions.
23 changes: 23 additions & 0 deletions caddy/Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
# email to use on Let's Encrypt
email youremail@email.com

# Uncomment for debug
#acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
#debug
}

# tenderduty v2
:8888 {
reverse_proxy tenderduty:8888
}

# prometheus metrics
:28686 {
reverse_proxy tenderduty:28686
}

# how to setup with your website
# tenderduty.mysite.com {
# reverse_proxy tenderduty:28686
# }
36 changes: 29 additions & 7 deletions example-docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
# docker-compose example for tenderduty, copy this file to docker-compose.yml and edit to suit.
version: '3.2'
services:

v2:
networks:
monitor-net:
driver: bridge

volumes:
home:
caddy_data: {}

services:
tenderduty:
build: .
command: ""
ports:
- "8888:8888" # Dashboard
- "28686:28686" # Prometheus exporter
expose:
- 8888 # Dashboard
- 28686 # Prometheus exporter
volumes:
- home:/var/lib/tenderduty
- ./config.yml:/var/lib/tenderduty/config.yml
Expand All @@ -17,6 +25,20 @@ services:
max-size: "20m"
max-file: "10"
restart: unless-stopped
networks:
- monitor-net

volumes:
home:
caddy:
image: caddy:2.3.0
ports:
- "80:80"
- "443:443"
- "443:443/udp"
- "8888:8888"
- "28686:28686"
volumes:
- ./caddy:/etc/caddy
- caddy_data:/data
restart: unless-stopped
networks:
- monitor-net

0 comments on commit 9c1efee

Please sign in to comment.