init
This commit is contained in:
110
CoreDNS/.drone.yml
Executable file
110
CoreDNS/.drone.yml
Executable file
@@ -0,0 +1,110 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: deploy
|
||||
|
||||
environment:
|
||||
PACKAGE: CoreDNS
|
||||
URL: ""
|
||||
|
||||
steps:
|
||||
- name: Tests
|
||||
image: ps03fd.alexlebens.net:5000/droneimage:latest
|
||||
commands:
|
||||
- /scripts/tests.sh
|
||||
|
||||
- name: Nofification > Discord | Tests - Failure
|
||||
image: appleboy/drone-discord
|
||||
settings:
|
||||
webhook_id:
|
||||
from_secret: discord_webhook_id
|
||||
webhook_token:
|
||||
from_secret: discord_webhook_token
|
||||
username: DroneCI - ps03fd
|
||||
message: Docker compose validation for CoreDNS failed.
|
||||
when:
|
||||
status:
|
||||
- failure
|
||||
|
||||
- name: Configuration
|
||||
image: ps03fd.alexlebens.net:5000/droneimage:latest
|
||||
commands:
|
||||
- mkdir ~/.ssh/
|
||||
- echo "$SSH_KEY" > ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
- ssh-keyscan -H $HOST_IP >> ~/.ssh/known_hosts
|
||||
- /scripts/configuration.sh
|
||||
environment:
|
||||
SSH_KEY:
|
||||
from_secret: ssh_key_ps03fd_drone
|
||||
DOCKER_HOST:
|
||||
from_secret: docker_host_ps03fd
|
||||
HOST_IP:
|
||||
from_secret: host_ip_ps03fd
|
||||
UPTIMEKUMA_NAME:
|
||||
from_secret: uptimekuma_name
|
||||
UPTIMEKUMA_PASSWORD:
|
||||
from_secret: uptimekuma_password
|
||||
UPTIMEKUMA_URL:
|
||||
from_secret: uptimekuma_url
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
|
||||
- name: Nofification > Discord | Configuration - Failure
|
||||
image: appleboy/drone-discord
|
||||
settings:
|
||||
webhook_id:
|
||||
from_secret: discord_webhook_id
|
||||
webhook_token:
|
||||
from_secret: discord_webhook_token
|
||||
username: DroneCI - ps03fd
|
||||
message: Configuration for CoreDNS failed.
|
||||
when:
|
||||
status:
|
||||
- failure
|
||||
|
||||
- name: Deploy
|
||||
image: ps03fd.alexlebens.net:5000/droneimage:latest
|
||||
commands:
|
||||
- mkdir ~/.ssh/
|
||||
- echo "$SSH_KEY" > ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
- ssh-keyscan -H $HOST_IP >> ~/.ssh/known_hosts
|
||||
- /scripts/deploy.sh
|
||||
environment:
|
||||
SSH_KEY:
|
||||
from_secret: ssh_key_ps03fd_drone
|
||||
DOCKER_HOST:
|
||||
from_secret: docker_host_ps03fd
|
||||
HOST_IP:
|
||||
from_secret: host_ip_ps03fd
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
|
||||
- name: Nofification > Discord | Deploy - Success
|
||||
image: appleboy/drone-discord
|
||||
settings:
|
||||
webhook_id:
|
||||
from_secret: discord_webhook_id
|
||||
webhook_token:
|
||||
from_secret: discord_webhook_token
|
||||
username: DroneCI - ps03fd
|
||||
message: Docker compose deployment for CoreDNS succeeded
|
||||
when:
|
||||
status:
|
||||
- sucess
|
||||
|
||||
- name: Nofification > Discord | Deploy - Failure
|
||||
image: appleboy/drone-discord
|
||||
settings:
|
||||
webhook_id:
|
||||
from_secret: discord_webhook_id
|
||||
webhook_token:
|
||||
from_secret: discord_webhook_token
|
||||
username: DroneCI - ps03fd
|
||||
message: Docker compose deployment for CoreDNS failed.
|
||||
when:
|
||||
status:
|
||||
- failure
|
20
CoreDNS/Files/coredns_config/Corefile
Executable file
20
CoreDNS/Files/coredns_config/Corefile
Executable file
@@ -0,0 +1,20 @@
|
||||
alexlebens.net {
|
||||
file /etc/coredns/alexlebens.net.zone {
|
||||
reload 10s
|
||||
}
|
||||
bufsize 4096
|
||||
log
|
||||
errors
|
||||
prometheus :9153
|
||||
reload 30s
|
||||
auto
|
||||
}
|
||||
|
||||
.:53 {
|
||||
forward . 172.27.1.3
|
||||
bufsize 4096
|
||||
log
|
||||
errors
|
||||
prometheus :9153
|
||||
reload 30s
|
||||
}
|
89
CoreDNS/Files/coredns_config/alexlebens.net.zone
Executable file
89
CoreDNS/Files/coredns_config/alexlebens.net.zone
Executable file
@@ -0,0 +1,89 @@
|
||||
$ORIGIN alexlebens.net.
|
||||
$TTL 86400
|
||||
@ IN SOA patryk.ns.cloudflare.com. alexanderlebens.gmail.com. (
|
||||
2021121701 ; serial
|
||||
3H ; refresh after 3 hours
|
||||
1H ; retry after 1 hour
|
||||
1W ; expire after 1 week
|
||||
1D) ; minimum TTL of 1 day
|
||||
|
||||
; Name Server
|
||||
IN NS patryk.ns.cloudflare.com.
|
||||
IN NS veda.ns.cloudflare.com.
|
||||
; IN NS dns1.alexlebens.net.
|
||||
|
||||
; Name Server
|
||||
IN NS patryk.ns.cloudflare.com.
|
||||
IN NS veda.ns.cloudflare.com.
|
||||
; IN NS dns1.alexlebens.net.
|
||||
|
||||
alexlebens.net. IN A 192.168.1.15
|
||||
www IN A 192.168.1.15
|
||||
|
||||
dns1 IN A 192.168.1.15
|
||||
|
||||
pd04wd IN A 192.168.1.115
|
||||
ps03fd IN A 192.168.1.15
|
||||
ps08rp IN A 192.168.1.136
|
||||
|
||||
talos-ibv-goo IN A 192.168.1.16
|
||||
|
||||
talos-luo-mqa IN A 192.168.1.192
|
||||
talos-uk2-e0z IN A 192.168.1.39
|
||||
talos-yed-cb6 IN A 192.168.1.126
|
||||
|
||||
talos IN A 192.168.1.192
|
||||
talos IN A 192.168.1.39
|
||||
talos IN A 192.168.1.126
|
||||
|
||||
airgradientbr IN A 192.168.1.100
|
||||
hdhr IN A 192.168.1.213
|
||||
pibox IN A 192.168.1.40
|
||||
pikvm IN A 192.168.1.57
|
||||
synology IN A 192.168.1.55
|
||||
synologybond IN A 192.168.1.194
|
||||
unifi IN A 192.168.1.1
|
||||
|
||||
traefik-ps08rp IN A 192.168.1.136
|
||||
technitium-ps08rp IN A 192.168.1.136
|
||||
|
||||
|
||||
pihole IN A 192.168.1.15
|
||||
|
||||
|
||||
alertmanager IN A 192.168.1.16
|
||||
argocd IN A 192.168.1.16
|
||||
audiobookshelf IN A 192.168.1.16
|
||||
authentik IN A 192.168.1.16
|
||||
calibre IN A 192.168.1.16
|
||||
codeserver IN A 192.168.1.16
|
||||
kubernetes IN A 192.168.1.16
|
||||
gitea IN A 192.168.1.16
|
||||
grafana IN A 192.168.1.16
|
||||
homeassistant IN A 192.168.1.16
|
||||
homepage IN A 192.168.1.16
|
||||
jellyfin IN A 192.168.1.16
|
||||
kargo IN A 192.168.1.16
|
||||
minio IN A 192.168.1.16
|
||||
minio-console IN A 192.168.1.16
|
||||
navidrome IN A 192.168.1.16
|
||||
n8n IN A 192.168.1.16
|
||||
outline IN A 192.168.1.16
|
||||
pgadmin IN A 192.168.1.16
|
||||
plex IN A 192.168.1.16
|
||||
prometheus IN A 192.168.1.16
|
||||
promtail IN A 192.168.1.16
|
||||
rss IN A 192.168.1.16
|
||||
tautulli IN A 192.168.1.16
|
||||
traefik IN A 192.168.1.16
|
||||
tubearchivist IN A 192.168.1.16
|
||||
vault IN A 192.168.1.16
|
||||
vikunja IN A 192.168.1.16
|
||||
overseerr IN A 192.168.1.16
|
||||
prowlarr IN A 192.168.1.16
|
||||
readarr IN A 192.168.1.16
|
||||
radarr IN A 192.168.1.16
|
||||
sonarr IN A 192.168.1.16
|
||||
lidarr IN A 192.168.1.16
|
||||
tdaarr IN A 192.168.1.16
|
||||
qbittorrent IN A 192.168.1.16
|
3
CoreDNS/README.md
Executable file
3
CoreDNS/README.md
Executable file
@@ -0,0 +1,3 @@
|
||||
# CoreDNS
|
||||
|
||||
[](https://drone.alexlebens.net/alexlebens/CoreDNS)
|
17
CoreDNS/UptimeKuma/docker-1.json
Executable file
17
CoreDNS/UptimeKuma/docker-1.json
Executable file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"type": "docker",
|
||||
"name": "CoreDNS - Docker",
|
||||
"interval": 60,
|
||||
"retryInterval": 20,
|
||||
"maxretries": 1,
|
||||
"notificationIDList": [
|
||||
3,
|
||||
4
|
||||
],
|
||||
"url": "",
|
||||
"accepted_statuscodes": [
|
||||
"200-299"
|
||||
],
|
||||
"docker_container": "coredns",
|
||||
"docker_host": 1
|
||||
}
|
33
CoreDNS/docker-compose.yml
Executable file
33
CoreDNS/docker-compose.yml
Executable file
@@ -0,0 +1,33 @@
|
||||
services:
|
||||
coredns:
|
||||
command: "-conf /etc/coredns/Corefile"
|
||||
container_name: coredns
|
||||
image: coredns/coredns:latest
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 50m
|
||||
max-file: "3"
|
||||
networks:
|
||||
traefik:
|
||||
ipv4_address: 172.27.1.2
|
||||
ports:
|
||||
- 192.168.1.15:53:53/tcp
|
||||
- 192.168.1.15:53:53/udp
|
||||
restart: always
|
||||
privileged: true
|
||||
volumes:
|
||||
- config:/etc/coredns
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
name: traefik
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
config:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: /var/lib/docker/volumes/partition/coredns_config
|
Reference in New Issue
Block a user