forked from SimpleHomelab/docker-traefik
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Several updates 2023_09_24. See full commit log.
* Changed docker-compose-t2-media-db.yml to docker-compose-media-db.yml as this stack was not using Traefik. * Updated docker and docker compose versions in all stacks. * Docker extension fields were partially removed in my previous commit. Not its been removed from all my other stacks - due to readability issues. * Implemented Docker profiles to start and stop cntainers as a group - e.g. those that depend on mounts will be started using a bash script after the mounts become available. * No use for media-services.txt anymore after implementation of docker profiles. * Modified start-media-after-boot.sh to reflect the use of docker profiles. * Added addition PHP extensions to Docekrfile-php7 for my web stack. * Updated bash_aliases to use docker profiles. * Added prometheus and influxdb2 metrics for Traefik. * Exposes socket proxy port 2375 to local network - manage containers from home assistant * Some changes due to Plex now using media stored on Synology instead of Google Drive (Rclone) * Added node-exporter and glances to web stack for Grafana monitoring * Removed crowdsec-blocklists container. Could not find a use. * Testing mergerfs container on Synology * Updated traefik to 2.10
- Loading branch information
1 parent
ac24d3e
commit a05483c
Showing
17 changed files
with
806 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
appdata/traefik2/rules/cloudserver/app-hassos-no-auth.yml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
http: | ||
routers: | ||
hassos-rtr: | ||
rule: "Host(`hassos.{{env "DOMAINNAME_CLOUD_SERVER"}}`)" | ||
entryPoints: | ||
- https | ||
middlewares: | ||
- chain-no-auth | ||
service: hassos-svc | ||
tls: | ||
certResolver: dns-cloudflare | ||
services: | ||
hassos-svc: | ||
loadBalancer: | ||
servers: | ||
- url: "http://192.168.5.90:8123" # or whatever your external host's IP:port is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Autoindex - Simple Directory Index | ||
autoindex: | ||
<<: *common-keys-apps # See EXTENSION FIELDS at the top | ||
container_name: autoindex | ||
image: dceoy/nginx-autoindex:latest | ||
# ports: | ||
# - "$AUTOINDEX_PORT:80" | ||
volumes: | ||
- /volume1:/var/lib/nginx/html:ro # Location you want to index | ||
labels: | ||
- "traefik.enable=true" | ||
## HTTP Routers | ||
- "traefik.http.routers.autoindex-rtr.entrypoints=https" | ||
- "traefik.http.routers.autoindex-rtr.rule=Host(`indexh.$DOMAINNAME0`)" | ||
## Middlewares | ||
- "traefik.http.routers.autoindex-rtr.middlewares=chain-oauth@file" | ||
## HTTP Services | ||
- "traefik.http.routers.autoindex-rtr.service=autoindex-svc" | ||
- "traefik.http.services.autoindex-svc.loadbalancer.server.port=80" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# CrowdSec Blocklist Mirror - For PiHole/AdGuard Use | ||
# sudo docker exec crowdsec cscli bouncer add cloudflare-bouncer | ||
crowdsec-blocklist: | ||
image: crowdsecurity/blocklist-mirror | ||
container_name: crowdsec-blocklist | ||
security_opt: | ||
- no-new-privileges:true | ||
restart: unless-stopped | ||
profiles: ["apps", "all"] | ||
networks: | ||
- t2_proxy | ||
volumes: | ||
- $DOCKERDIR/appdata/crowdsec-blocklist/cfg.yaml:/etc/crowdsec/bouncers/crowdsec-blocklist-mirror.yaml | ||
labels: | ||
- "traefik.enable=true" | ||
## HTTP Routers | ||
- "traefik.http.routers.crowdsec-blocklist-rtr.entrypoints=https" | ||
- "traefik.http.routers.crowdsec-blocklist-rtr.rule=Host(`blocklist.$DOMAINNAME_SHB`)" # https://domain.com/security/blocklist | ||
## Middlewares | ||
- "traefik.http.routers.crowdsec-blocklist-rtr.middlewares=chain-oauth@file" | ||
## HTTP Services | ||
- "traefik.http.routers.crowdsec-blocklist-rtr.service=crowdsec-blocklist-svc" | ||
- "traefik.http.services.crowdsec-blocklist-svc.loadbalancer.server.port=41412" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Firefox - Web Broswer | ||
# VNC password not working - check | ||
firefox: | ||
<<: *common-keys-apps # See EXTENSION FIELDS at the top | ||
image: jlesage/firefox:latest | ||
container_name: firefox | ||
security_opt: | ||
- no-new-privileges:true | ||
- seccomp:unconfined # October 15, 2020 https://github.com/jlesage/docker-firefox/blob/master/README.md#allowing-the-membarrier-system-call | ||
# ports: | ||
# - "$FIREFOX_PORT:5800" | ||
volumes: | ||
- $DOCKERDIR/appdata/firefox:/config | ||
- $DOWNLOADSDIR:/config/Downloads | ||
- /dev/shm:/dev/shm | ||
environment: | ||
USER_ID: $PUID | ||
GROUP_ID: $PGID | ||
TZ: $TZ | ||
UMASK: 002 | ||
KEEP_APP_RUNNING: 1 | ||
CLEAN_TMP_DIR: 1 | ||
DISPLAY_WIDTH: 1600 | ||
DISPLAY_HEIGHT: 960 | ||
# VNC_PASSWD: $FIREFOX_VNC_PASSWD # Since OAuth is enabled | ||
labels: | ||
- "traefik.enable=true" | ||
## HTTP Routers | ||
- "traefik.http.routers.firefox-rtr.entrypoints=https" | ||
- "traefik.http.routers.firefox-rtr.rule=Host(`firefoxh.$DOMAINNAME0`)" | ||
## Middlewares | ||
- "traefik.http.routers.firefox-rtr.middlewares=chain-oauth@file" | ||
## HTTP Services | ||
- "traefik.http.routers.firefox-rtr.service=firefox-svc" | ||
- "traefik.http.services.firefox-svc.loadbalancer.server.port=5800" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Mosquitto - MQTT Broker | ||
# Create mosquitto.conf, passwd, mosquitto.log files and set permissions to 775 user:docker | ||
# dexec mosquitto /bin/sh -> mosquitto_passwd -b /mosquitto/config/passwd username passwd | ||
mosquitto: | ||
<<: *common-keys-apps # See EXTENSION FIELDS at the top | ||
image: eclipse-mosquitto:latest | ||
container_name: mosquitto | ||
ports: | ||
- "$MOSQUITTO_HTTP_PORT:1883" #http | ||
- "9001:9001" #websockets | ||
# - "$MOSQUITTO_HTTPS_PORT:8883" #https | ||
volumes: | ||
- $DOCKERDIR/appdata/mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf | ||
- $DOCKERDIR/appdata/mosquitto/config/passwd:/mosquitto/config/passwd | ||
- $DOCKERDIR/shared:/shared | ||
environment: | ||
PUID: $PUID | ||
PGID: $PGID | ||
TZ: $TZ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.