Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
80 Add duckdns domain in compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
veerendra2 committed Aug 30, 2023
1 parent 085b4c8 commit 3cb027c
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 23 deletions.
6 changes: 0 additions & 6 deletions services/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
# Docker Swarm Services
> Refer [Gitbook Docs](https://dust6765.gitbook.io/raspberrypi-home-server/services)
**NOTE:** Export `DOMAIN` environmental variable before deploying services
```bash
$ export DOMAIN=mydomain.com
```
2 changes: 1 addition & 1 deletion services/filebrowser/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
- traefik.enable=true
- traefik.docker.network=network_public
- traefik.http.routers.filebrowser.tls=true
- traefik.http.routers.filebrowser.rule=Host(`${DOMAIN}`) && PathPrefix(`/filebrowser`)
- traefik.http.routers.filebrowser.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/filebrowser`)
- traefik.http.routers.filebrowser.middlewares=filebrowser-stripprefix
- traefik.http.middlewares.filebrowser-stripprefix.stripprefix.prefixes=/filebrowser
- traefik.http.services.filebrowser.loadbalancer.server.port=80
Expand Down
2 changes: 1 addition & 1 deletion services/homer/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
labels:
- "traefik.enable=true"
- "traefik.docker.network=network_public"
- "traefik.http.routers.homer.rule=Host(`${DOMAIN}`) && PathPrefix(`/`)"
- "traefik.http.routers.homer.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/`)"
- "traefik.http.routers.homer.tls=true"
- "traefik.http.services.homer.loadbalancer.server.port=8080"
hostname: homer
Expand Down
4 changes: 4 additions & 0 deletions services/jacket/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# jacket
This stack requires `qBittorent` + `Wireguard` which should be up and running.

* Deploy [qBittorrent + Wireguard](../qbittorrent/)
2 changes: 1 addition & 1 deletion services/jacket/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
- traefik.enable=true
- traefik.docker.network=network_private
- traefik.http.routers.jackett.tls=true
- traefik.http.routers.jackett.rule=Host(`${DOMAIN}`) && PathPrefix(`/jackett`)
- traefik.http.routers.jackett.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/jackett`)
- traefik.http.services.jackett.loadbalancer.server.port=9117
hostname: jackett
env_file:
Expand Down
2 changes: 1 addition & 1 deletion services/jellyfin/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
- traefik.enable=true
- traefik.docker.network=network_public
- traefik.http.routers.jellyfin.tls=true
- traefik.http.routers.jellyfin.rule=Host(`${DOMAIN}`) && PathPrefix(`/jellyfin`)
- traefik.http.routers.jellyfin.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/jellyfin`)
- traefik.http.services.jellyfin.loadbalancer.server.port=8096
hostname: jellyfin
env_file:
Expand Down
4 changes: 2 additions & 2 deletions services/monitoring/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
- traefik.enable=true
- traefik.docker.network=network_public
- traefik.http.routers.prometheus.tls=true
- traefik.http.routers.prometheus.rule=Host(`${DOMAIN}`) && PathPrefix(`/prometheus`)
- traefik.http.routers.prometheus.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/prometheus`)
- traefik.http.services.prometheus.loadbalancer.server.port=9090
hostname: prometheus
volumes:
Expand Down Expand Up @@ -65,7 +65,7 @@ services:
- traefik.enable=true
- traefik.docker.network=network_public
- traefik.http.routers.grafana.tls=true
- traefik.http.routers.grafana.rule=Host(`${DOMAIN}`) && PathPrefix(`/grafana`)
- traefik.http.routers.grafana.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/grafana`)
- traefik.http.routers.grafana.middlewares=grafana-stripprefix
- traefik.http.middlewares.grafana-stripprefix.stripprefix.prefixes=/grafana
- traefik.http.services.grafana.loadbalancer.server.port=3000
Expand Down
2 changes: 1 addition & 1 deletion services/nextcloud/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
- traefik.enable=true
- traefik.docker.network=network_public
- traefik.http.routers.nextcloud.tls=true
- traefik.http.routers.nextcloud.rule=Host(`${DOMAIN}`) && PathPrefix(`/nextcloud`)
- traefik.http.routers.nextcloud.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/nextcloud`)
- traefik.http.routers.nextcloud.middlewares=nextcloud-stripprefix
- traefik.http.middlewares.nextcloud-stripprefix.stripprefix.prefixes=/nextcloud
- traefik.http.services.nextcloud.loadbalancer.server.port=80
Expand Down
2 changes: 1 addition & 1 deletion services/pihole/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
labels:
- traefik.enable=true
- traefik.docker.network=network_public
- traefik.http.routers.pihole.rule=Host(`${DOMAIN}`) && PathPrefix(`/admin`)
- traefik.http.routers.pihole.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/admin`)
- traefik.http.routers.pihole.tls=true
- traefik.http.services.pihole.loadbalancer.server.port=80
hostname: pihole
Expand Down
2 changes: 1 addition & 1 deletion services/portainer/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
- traefik.enable=true
- traefik.docker.network=network_public
- traefik.http.routers.portainer.tls=true"
- traefik.http.routers.portainer.rule=Host(`${DOMAIN}`) && PathPrefix(`/portainer`)
- traefik.http.routers.portainer.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/portainer`)
- traefik.http.routers.portainer.middlewares=portainer-stripprefix
- traefik.http.middlewares.portainer-stripprefix.stripprefix.prefixes=/portainer
- traefik.http.services.portainer.loadbalancer.server.port=9000
Expand Down
2 changes: 1 addition & 1 deletion services/qbittorrent/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ services:
- traefik.enable=true
- traefik.docker.network=network_private
- traefik.http.routers.qbittorrent.tls=true
- traefik.http.routers.qbittorrent.rule=Host(`${DOMAIN}`) && PathPrefix(`/qbittorrent`)
- traefik.http.routers.qbittorrent.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/qbittorrent`)
- traefik.http.routers.qbittorrent.middlewares=qbittorrent-stripprefix
- traefik.http.middlewares.qbittorrent-stripprefix.stripprefix.prefixes=/qbittorrent
- traefik.http.services.qbittorrent.loadbalancer.server.port=8080
Expand Down
4 changes: 4 additions & 0 deletions services/radarr/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Radarr
This stack requires `qBittorent` + `Wireguard` which should be up and running.

* Deploy [qBittorrent + Wireguard](../qbittorrent/)
2 changes: 1 addition & 1 deletion services/radarr/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
- traefik.enable=true
- traefik.docker.network=network_private
- traefik.http.routers.radarr.tls=true
- traefik.http.routers.radarr.rule=Host(`${DOMAIN}`) && PathPrefix(`/radarr`)
- traefik.http.routers.radarr.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/radarr`)
- traefik.http.services.radarr.loadbalancer.server.port=7878
hostname: radarr
env_file:
Expand Down
2 changes: 1 addition & 1 deletion services/rest-server/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ services:
- traefik.enable=true
- traefik.docker.network=network_public
- traefik.http.routers.rest-server.tls=true
- traefik.http.routers.rest-server.rule=Host(`${DOMAIN}`) && PathPrefix(`/restic`)
- traefik.http.routers.rest-server.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/restic`)
- traefik.http.services.rest-server.loadbalancer.server.port=8000
hostname: rest-server
user: 1000:1003
Expand Down
2 changes: 1 addition & 1 deletion services/searxng/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
- traefik.enable=true
- traefik.docker.network=network_public
- traefik.http.routers.searxng.tls=true
- traefik.http.routers.searxng.rule=Host(`${DOMAIN}`) && PathPrefix(`/searxng`)
- traefik.http.routers.searxng.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/searxng`)
- traefik.http.services.searxng.loadbalancer.server.port=8080
hostname: searxng
env_file:
Expand Down
4 changes: 4 additions & 0 deletions services/sonarr/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sonarr
This stack requires `qBittorent` + `Wireguard` which should be up and running.

* Deploy [qBittorrent + Wireguard](../qbittorrent/)
2 changes: 1 addition & 1 deletion services/sonarr/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
- traefik.enable=true
- traefik.docker.network=network_private
- traefik.http.routers.sonarr.tls=true
- traefik.http.routers.sonarr.rule=Host(`${DOMAIN}`) && PathPrefix(`/sonarr`)
- traefik.http.routers.sonarr.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/sonarr`)
- traefik.http.services.sonarr.loadbalancer.server.port=8989
hostname: sonarr
env_file:
Expand Down
2 changes: 1 addition & 1 deletion services/traefik/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
- traefik.http.routers.api.tls=true
- traefik.http.routers.api.entrypoints=https
- traefik.http.routers.api.tls.certresolver=httpResolver
- traefik.http.routers.api.rule=Host(`${DOMAIN}`) && PathPrefix(`/dashboard`) || Host(`${DOMAIN}`) && PathPrefix(`/api`)
- traefik.http.routers.api.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/dashboard`) || Host(`veeru.duckdns.org`) && PathPrefix(`/api`)
- traefik.http.routers.api.service=api@internal
- traefik.http.services.dummy.loadbalancer.server.port=9999
hostname: traefik
Expand Down
4 changes: 2 additions & 2 deletions services/vaultwarden/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ services:
- traefik.enable=true
- traefik.docker.network=network_public
- traefik.http.routers.vaultwarden.tls=true
- traefik.http.routers.vaultwarden.rule=Host(`${DOMAIN}`) && PathPrefix(`/vaultwarden`)
- traefik.http.routers.vaultwarden.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/vaultwarden`)
- traefik.http.routers.vaultwarden.service=vaultwarden
- traefik.http.services.vaultwarden.loadbalancer.server.port=80
- traefik.http.routers.vaultwarden-websocket.tls=true
- traefik.http.routers.vaultwarden-websocket.rule=Host(`${DOMAIN}`) && Path(`/notifications/hub`)
- traefik.http.routers.vaultwarden-websocket.rule=Host(`veeru.duckdns.org`) && Path(`/notifications/hub`)
- traefik.http.routers.vaultwarden-websocket.service=vaultwarden-websocket
- traefik.http.services.vaultwarden-websocket.loadbalancer.server.port=3012
hostname: vaultwarden
Expand Down

0 comments on commit 3cb027c

Please sign in to comment.