Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Caddy server for dns registering #32

Merged
merged 2 commits into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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