Skip to content

Commit

Permalink
0.1 (#12)
Browse files Browse the repository at this point in the history
* Move to individual docker-compose.yml

* Update create_vars.sh
  • Loading branch information
animeai authored May 11, 2022
1 parent f41fa45 commit afffc7c
Show file tree
Hide file tree
Showing 102 changed files with 3,032 additions and 2,535 deletions.
1 change: 1 addition & 0 deletions .stickler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ linters:
shellcheck:
shell: bash
yamllint:
config: ./yamllint.conf
76 changes: 76 additions & 0 deletions adguardhome/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
# https://github.com/bakito/adguardhome-sync
# Synchronize AdGuardHome config to a replica instance.
version: "3.8"
networks:
t2_proxy:
external:
services:
smarthome:
driver: macvlan
driver_opts:
parent: ${ETHERNET_PORT?ETHERNET_PORT Variable not set}
ipam:
config:
subnet: ${SUBNET_IP?SUBNET_IP Variable not set}
gateway: ${GATEWAY_IP?GATEWAY_IP Variable not set}
ip_range: ${SUBNET_RANGE?SUBNET_RANGE Variable not set}
adguardhome-one:
image: adguard/adguardhome
container_name: adguardhome-one
ports:
- 53:53/tcp
- 53:53/udp
- 784:784/udp
- 853:853/tcp
- 3000:3000/tcp
- 80:80/tcp
- 443:443/tcp
volumes:
- /var/data/adguardhome/work:/opt/adguardhome/work
- /var/data/adguardhome/config:/opt/adguardhome/conf
restart: ${RESTART_POLICY?RESTART_POLICY Variable not set}
networks:
smarthome:
- ipv4_address: ${ADGUARDHOME_ONE_IP?ADGUARDHOME_ONE_IP Variable not set}
t2_proxy:
adguardhome-two:
image: adguard/adguardhome
container_name: adguardhome-two
ports:
- 53:53/tcp
- 53:53/udp
- 784:784/udp
- 853:853/tcp
- 3000:3000/tcp
- 80:80/tcp
- 443:443/tcp
volumes:
- /var/data/adguardhome2/work :/opt/adguardhome/work
- /var/data/adguardhome2/config:/opt/adguardhome/conf
restart: ${RESTART_POLICY?RESTART_POLICY Variable not set}
networks:
smarthome:
ipv4_address: ${ADGUARDHOME_TWO_IP?ADGUARDHOME_TWO_IP Variable not set}
t2_proxy:
labels:
- traefik.enable=true
- traefik.http.services.adguardhome-one-https.loadbalancer.server.port=443
- traefik.http.routers.adguardhome-one-https.entrypoints=https
- traefik.http.routers.adguardhome-one-https.rule=Host(`${ADGUARDHOME_TWO_SUB?ADGUARDHOME_TWO_SUB Variable not set}.${DOMAIN?DOMAIN Variable not set}`)
- traefik.http.routers.adguardhome-one-https.tls=true
- traefik.http.routers.adguardhome-one-https.tls.certresolver=myresolver
- traefik.http.routers.adguardhome-one-https.middlewares=authelia@docker
adguardhome-sync:
image: lscr.io/linuxserver/adguardhome-sync
container_name: adguardhome-sync
environment:
- PUID=${PUID?PUID Variable not set}
- PGID=${PGID?PGID Variable not set}
- TZ=${TIMEZONE?TIMEZONE Variable not set}
- CONFIGFILE=/config/adguardhome-sync.yaml # optional
volumes:
- /var/data/adguardhome-sync/config:/config
ports:
- 8080:8080
restart: ${RESTART_POLICY?RESTART_POLICY Variable not set}
85 changes: 43 additions & 42 deletions asdb/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# Set of ADS-B Scanning software. Requires an appropraite USB dongle and antenna
version: "3.8"
networks:
t2_proxy:
Expand All @@ -15,10 +16,10 @@ services:
- LAT=${LAT?LAT Variable not set}
- LONG=${LONG?LONG Variable not set}
- ALT=${ALT?ALT Variable not set}
- SITENAME=${ASDBEXCHANGE_SITENAME?ASDBEXCHANGE_SITENAME Variable not set}
- UUID=${ASDBEXCHANGE_UUID?ASDBEXCHANGE_UUID Variable not set}
- SITENAME=${ADSBEXCHANGE_SITENAME?ADSBEXCHANGE_SITENAME Variable not set}
- UUID=${ADSBEXCHANGE_UUID?ADSBEXCHANGE_UUID Variable not set}
- TZ=${TIMEZONE?TIMEZONE Variable not set}
- REDUCE_INTERVAL=${ASDBEXCHANGE_REDUCE_INTERVAL?ASDBEXCHANGE_REDUCE_INTERVAL Variable not set}
- REDUCE_INTERVAL=${ADSBEXCHANGE_REDUCE_INTERVAL?ADSBEXCHANGE_REDUCE_INTERVAL Variable not set}
tmpfs:
- /run:exec,size=64M,${PUID?PUID Variable not set},${PGID?PGID Variable not set}
- /var/log
Expand All @@ -30,7 +31,7 @@ services:
environment:
- TZ=${TIMEZONE?TIMEZONE Variable not set}
- SBSHOST=readsb
- CLIENTKEY=${ASDBHUB_CLIENTKEY?ASDBHUB_CLIENTKEY Variable not set}
- CLIENTKEY=${ADSBHUB_CLIENTKEY?ADSBHUB_CLIENTKEY Variable not set}
flightairmap:
image: mikenye/flightairmap:latest
tty: true
Expand All @@ -54,12 +55,12 @@ services:
- FAM_FLIGHTAWAREPASSWORD=${FLIGHTAIRMAP_PASS?FLIGHTAIRMAP_PASS Variable not set}
labels:
- traefik.enable=true
- traefik.http.services.proxyflightairmap.loadbalancer.server.port=80
- traefik.http.services.flightairmap.loadbalancer.server.port=80
- traefik.docker.network=t2_proxy
- traefik.http.routers.proxyflightairmap-https.rule=Host(`${FLIGHTAIRMAP_SUB?FLIGHTAIRMAP_SUB Variable not set}.${DOMAIN?DOMAIN Variable not set}`)
- traefik.http.routers.proxyflightairmap-https.entrypoints=https
- traefik.http.routers.proxyflightairmap-https.tls=true
- traefik.http.routers.proxyflightairmap-https.tls.certresolver=myresolver
- traefik.http.routers.flightairmap-https.rule=Host(`${FLIGHTAIRMAP_SUB?FLIGHTAIRMAP_SUB Variable not set}.${DOMAIN?DOMAIN Variable not set}`)
- traefik.http.routers.flightairmap-https.entrypoints=https
- traefik.http.routers.flightairmap-https.tls=true
- traefik.http.routers.flightairmap-https.tls.certresolver=myresolver
flightairmap-db:
image: mariadb
command: --default-authentication-plugin=mysql_native_password
Expand All @@ -73,7 +74,7 @@ services:
- MYSQL_USER=flightairmap
- MYSQL_PASSWORD=${FLIGHTAIRMAP_MYSQL_PASS?FLIGHTAIRMAP_MYSQL_PASS Variable not set}
volumes:
- /var/data/asdb/flightairmap/mysql:/var/lib/mysql
- /var/data/adsb/flightairmap/mysql:/var/lib/mysql
flight-radar-24:
image: mikenye/fr24feed:latest
tty: true
Expand All @@ -90,15 +91,15 @@ services:
- FEEDER_LAT=${LAT?LAT Variable not set}
- FEEDER_LONG=${LAT?LAT Variable not set}
volumes:
- /var/data/asdb/fr24/log:/var/log
- /var/data/adsb/fr24/log:/var/log
labels:
- traefik.enable=true
- traefik.http.services.proxyfr24.loadbalancer.server.port=8754
- traefik.http.services.fr24.loadbalancer.server.port=8754
- traefik.docker.network=t2_proxy
- traefik.http.routers.proxyfr24-https.rule=(`${FR24_SUB?FR24_SUB Variable not set}.${DOMAIN?DOMAIN Variable not set}`)
- traefik.http.routers.proxyfr24-https.entrypoints=https
- traefik.http.routers.proxyfr24-https.tls=true
- traefik.http.routers.proxyfr24-https.tls.certresolver=myresolver
- traefik.http.routers.fr24-https.rule=(`${FR24_SUB?FR24_SUB Variable not set}.${DOMAIN?DOMAIN Variable not set}`)
- traefik.http.routers.fr24-https.entrypoints=https
- traefik.http.routers.fr24-https.tls=true
- traefik.http.routers.fr24-https.tls.certresolver=myresolver
networks:
t2_proxy:
graphs1090:
Expand All @@ -115,12 +116,12 @@ services:
- t2_proxy
labels:
- traefik.enable=true
- traefik.http.services.proxygraphs.loadbalancer.server.port=80
- traefik.http.services.graphs.loadbalancer.server.port=80
- traefik.docker.network=t2_proxy
- traefik.http.routers.proxygraphs-https.rule=Host(`${GRAPHS1090_SUB?GRAPHS1090_SUB Variable not set}.${DOMAIN?DOMAIN Variable not set}`)
- traefik.http.routers.proxygraphs-https.entrypoints=https
- traefik.http.routers.proxygraphs-https.tls=true
- traefik.http.routers.proxygraphs-https.tls.certresolver=myresolver
- traefik.http.routers.graphs-https.rule=Host(`${GRAPHS1090_SUB?GRAPHS1090_SUB Variable not set}.${DOMAIN?DOMAIN Variable not set}`)
- traefik.http.routers.graphs-https.entrypoints=https
- traefik.http.routers.graphs-https.tls=true
- traefik.http.routers.graphs-https.tls.certresolver=myresolver
opensky:
image: mikenye/opensky-network:latest
tty: true
Expand Down Expand Up @@ -182,17 +183,17 @@ services:
- READSB_BEAST_MODEAC=${READSB_BEAST_MODEAC?READSB_BEAST_MODEAC Variable not set}
- READSB_FORWARD_MLAT=${READSB_FORWARD_MLAT?READSB_FORWARD_MLAT Variable not set}
volumes:
- /var/data/asdb/readsb/readsbpb_rrd:/run/collectd
- /var/data/asdb/readsb/readsbpb_autogain:/run/autogain
- /var/data/asdb/shared/readsb:/run/readsb
- /var/data/adsb/readsb/readsbpb_rrd:/run/collectd
- /var/data/adsb/readsb/readsbpb_autogain:/run/autogain
- /var/data/adsb/shared/readsb:/run/readsb
labels:
- traefik.enable=true
- traefik.http.services.proxyreadsb.loadbalancer.server.port=8080
- traefik.http.services.readsb.loadbalancer.server.port=8080
- traefik.docker.network=t2_proxy
- traefik.http.routers.proxyreadsb-https.rule=Host${READSB_SUB?READSB_SUB Variable not set}.${DOMAIN?DOMAIN Variable not set}`)
- traefik.http.routers.proxyreadsb-https.entrypoints=https
- traefik.http.routers.proxyreadsb-https.tls=true
- traefik.http.routers.proxyreadsb-https.tls.certresolver=myresolver
- traefik.http.routers.readsb-https.rule=Host${READSB_SUB?READSB_SUB Variable not set}.${DOMAIN?DOMAIN Variable not set}`)
- traefik.http.routers.readsb-https.entrypoints=https
- traefik.http.routers.readsb-https.tls=true
- traefik.http.routers.readsb-https.tls.certresolver=myresolver
networks:
t2_proxy:
planefinder:
Expand All @@ -212,12 +213,12 @@ services:
- /var/log/pfclient
labels:
- traefik.enable=true
- traefik.http.services.proxyplanefinder.loadbalancer.server.port=30053
- traefik.http.services.planefinder.loadbalancer.server.port=30053
- traefik.docker.network=t2_proxy
- traefik.http.routers.proxyplanefinder-https.rule=Host(`${PLANEFINDER_SUB?PLANEFINDER_SUB Variable not set}.${DOMAIN?DOMAIN Variable not set}`)
- traefik.http.routers.proxyplanefinder-https.entrypoints=https
- traefik.http.routers.proxyplanefinder-https.tls=true
- traefik.http.routers.proxyplanefinder-https.tls.certresolver=myresolver
- traefik.http.routers.planefinder-https.rule=Host(`${PLANEFINDER_SUB?PLANEFINDER_SUB Variable not set}.${DOMAIN?DOMAIN Variable not set}`)
- traefik.http.routers.planefinder-https.entrypoints=https
- traefik.http.routers.planefinder-https.tls=true
- traefik.http.routers.planefinder-https.tls.certresolver=myresolver
networks:
t2_proxy:
piaware:
Expand All @@ -239,7 +240,7 @@ services:
- BEASTPORT=30005
- VERBOSE_LOGGING=${PIAWARE_VERBOSE_LOGGING?PIAWARE_VERBOSE_LOGGING Variable not set}
volumes:
- /var/data/asdb/piaware/cache:/var/cache/piaware
- /var/data/adsb/piaware/cache:/var/cache/piaware
tmpfs:
- /run:exec,size=256M
- /var/log
Expand Down Expand Up @@ -271,12 +272,12 @@ services:
- /var/log
labels:
- traefik.enable=true
- traefik.http.services.proxytar1090.loadbalancer.server.port=80
- traefik.http.services.tar1090.loadbalancer.server.port=80
- traefik.docker.network=t2_proxy
- traefik.http.routers.proxytar1090-https.rule=Host(`${TAR1090_SUB?TAR1090_SUB Variable not set}.${DOMAIN?DOMAIN Variable not set}`)
- traefik.http.routers.proxytar1090-https.entrypoints=https
- traefik.http.routers.proxytar1090-https.tls=true
- traefik.http.routers.proxytar1090-https.tls.certresolver=myresolver
- traefik.http.routers.tar1090-https.rule=Host(`${TAR1090_SUB?TAR1090_SUB Variable not set}.${DOMAIN?DOMAIN Variable not set}`)
- traefik.http.routers.tar1090-https.entrypoints=https
- traefik.http.routers.tar1090-https.tls=true
- traefik.http.routers.tar1090-https.tls.certresolver=myresolver
networks:
t2_proxy:
virtualradarserver:
Expand All @@ -286,7 +287,7 @@ services:
hostname: virtualradarserver
restart: always
volumes:
- /var/data/asdb/virtualradar/config:/config
- /var/data/adsb/virtualradar/config:/config
environment:
- USERNAME=${VIRTUALRADARSERVER_USERNAME?VIRTUALRADARSERVER_USERNAME Variable not set}`)
- PASSWORD=${VIRTUALRADARSERVER_PASS?VIRTUALRADARSERVER_PASS Variable not set}`)
Expand All @@ -301,4 +302,4 @@ services:
- traefik.http.routers.virtualradarserver-https.tls=true
- traefik.http.routers.virtualradarserver-https.tls.certresolver=myresolver
networks:
t2_proxy:
t2_proxy:
25 changes: 25 additions & 0 deletions audiobookshelf/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
# Audiobookshelf is a self-hosted audiobook server for managing and playing your audiobooks
version: "3.8"
networks:
t2_proxy:
external: true
services:
audiobookshelf:
image: advplyr/audiobookshelf
container_name: audiobookshelf
restart: ${RESTART_POLICY?RESTART_POLICY Variable not set}
volumes:
- /var/data/audiobookshelf/config:/config
- /var/data/audiobookshelf/metadata:/metadata
- /mnt/audiobooks:/audiobooks
labels:
- traefik.enable=true
- traefik.http.services.audiobookshelf-https.loadbalancer.server.port=80
- traefik.http.routers.audiobookshelf-https.entrypoints=https
- traefik.http.routers.audiobookshelf-https.rule=Host(`${AUDIOBOOKSHELF_SUB?AUDIOBOOKSHELF_SUB Variable not set}.${DOMAIN?DOMAIN Variable not set}`)
- traefik.http.routers.audiobookshelf-https.tls=true
- traefik.http.routers.audiobookshelf-https.tls.certresolver=myresolver
- traefik.http.routers.audiobookshelf-https.middlewares=authelia@docker
networks:
t2_proxy:
Loading

0 comments on commit afffc7c

Please sign in to comment.