Merge pull request #3 from bjageman/letsencrypt

Letsencrypt
This commit is contained in:
Braden Jageman 2024-04-19 22:39:19 -04:00 committed by GitHub
commit d8a1308685
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 94 additions and 39 deletions

View File

@ -7,3 +7,4 @@ DBUSER=example
DBPASS=password
CONFIG_LOCATION=./config
DATA_LOCATION=./data
EMAIL=example@mail.com

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.env
config/
nginx/
nextcloud

View File

@ -6,11 +6,57 @@ services:
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx/certs:/etc/nginx/certs
- ./nginx/html:/usr/share/nginx/html
- ./nginx/vhost.d:/etc/nginx/vhost.d
- ./client_max_body_size.conf:/etc/nginx/conf.d/client_max_body_size.conf:ro
nginx-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nginx-letsencrypt
restart: always
volumes_from:
- nginx-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- DEFAULT_EMAIL=${EMAIL}
redis:
image: redis:alpine
container_name: redis-dbcache
restart: unless-stopped
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- ${CONFIG_LOCATION}/homarr:/app/data/configs
- ${DATA_LOCATION}/homarr/icons:/app/public/icons
- ${DATA_LOCATION}/homarr:/data
environment:
- VIRTUAL_HOST=homarr.${DOMAIN}, ${DOMAIN}, www.${DOMAIN}
- LETSENCRYPT_HOST="homarr.${DOMAIN}, ${DOMAIN}, www.${DOMAIN}"
- LETSENCRYPT_EMAIL=${EMAIL}
expose:
- "7575"
ports:
- '7575:7575'
dashdot:
image: mauricenino/dashdot
container_name: dashdot
restart: unless-stopped
privileged: true
environment:
- VIRTUAL_HOST=dash.${DOMAIN}
- DASHDOT_ENABLE_CPU_TEMPS=true
- DASHDOT_FS_DEVICE_FILTER=sda,sdb,sdc,sdd,sde,sdf
- DASHDOT_FS_VIRTUAL_MOUNTS=tank/storage/media, psb29404@psb29404.seedbox.io:/files
expose:
- "3001"
ports:
- 3001:3001
volumes:
- /:/mnt/host:ro
plex:
image: plexinc/pms-docker:latest
container_name: plex
@ -38,26 +84,13 @@ services:
- PGID=1000
- TZ=Etc/UTC
- VIRTUAL_HOST=tautulli.${DOMAIN},plex-stats.${DOMAIN}
- LETSENCRYPT_HOST=tautulli.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
volumes:
- ${CONFIG_LOCATION}/tautulli:/config
ports:
- 8181:8181
restart: unless-stopped
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- ${CONFIG_LOCATION}/homarr:/app/data/configs
- ${DATA_LOCATION}/homarr/icons:/app/public/icons
- ${DATA_LOCATION}/homarr:/data
environment:
- VIRTUAL_HOST=homarr.${DOMAIN}
expose:
- "7575"
ports:
- '7575:7575'
radarr:
image: lscr.io/linuxserver/radarr:latest
container_name: radarr
@ -66,6 +99,8 @@ services:
- PGID=${GID}
- TZ=${TZ}
- VIRTUAL_HOST=radarr.${DOMAIN},radar.${DOMAIN}
- LETSENCRYPT_HOST=radarr.${DOMAIN},radar.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
volumes:
- ${CONFIG_LOCATION}/radarr:/config
- ${DATA_LOCATION}/Movies:/movies
@ -83,6 +118,8 @@ services:
- PGID=${GID}
- TZ=${TZ}
- VIRTUAL_HOST=sonarr.${DOMAIN},sonar.${DOMAIN}
- LETSENCRYPT_HOST=sonarr.${DOMAIN},sonar.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
volumes:
- ${CONFIG_LOCATION}/sonarr:/config
- ${DATA_LOCATION}/TV:/tv
@ -100,6 +137,8 @@ services:
- PGID=${GID}
- TZ=${TZ}
- VIRTUAL_HOST=prowlarr.${DOMAIN}
- LETSENCRYPT_HOST=prowlarr.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
volumes:
- ${CONFIG_LOCATION}/prowlarr:/config
expose:
@ -115,6 +154,8 @@ services:
- PGID=${GID}
- TZ=${TZ}
- VIRTUAL_HOST=overseerr.${DOMAIN},overseer.${DOMAIN}
- LETSENCRYPT_HOST=overseerr.${DOMAIN},overseer.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
volumes:
- ${CONFIG_LOCATION}/overseerr:/config
expose:
@ -126,10 +167,12 @@ services:
image: lscr.io/linuxserver/lidarr:latest
container_name: lidarr
environment:
- PUID=33
- PGID=1001
- PUID=${UID}
- PGID=${GID}
- TZ=${TZ}
- VIRTUAL_HOST=lidarr.${DOMAIN},lidar.${DOMAIN}
- LETSENCRYPT_HOST=lidarr.${DOMAIN},lidar.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
volumes:
- ${CONFIG_LOCATION}/lidarr:/config
- ${DATA_LOCATION}/Music:/music
@ -147,6 +190,8 @@ services:
- PGID=${GID}
- TZ=${TZ}
- VIRTUAL_HOST=mylar.${DOMAIN},mylar3.${DOMAIN}
- LETSENCRYPT_HOST=mylar.${DOMAIN},mylar3.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
volumes:
- ${CONFIG_LOCATION}/mylar3:/config
- ${DATA_LOCATION}/Comics:/comics
@ -162,6 +207,7 @@ services:
- PGID=${GID}
- TZ=${TZ}
- VIRTUAL_HOST=ubooquity.${DOMAIN}
- VIRTUAL_PORT=2202
# - MAXMEM= #optional
volumes:
- ${CONFIG_LOCATION}/ubooquity:/config
@ -195,6 +241,8 @@ services:
- PGID=${GID}
- TZ=${TZ}
- VIRTUAL_HOST=readarr.${DOMAIN},readar.${DOMAIN}
- LETSENCRYPT_HOST=readarr.${DOMAIN},readar.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
volumes:
- ${CONFIG_LOCATION}/readarr:/config
- ${DATA_LOCATION}/Books:/books
@ -204,23 +252,20 @@ services:
ports:
- 8787:8787
restart: unless-stopped
readarr-audio:
readarraudio:
image: lscr.io/linuxserver/readarr:develop
container_name: readarr-audio
container_name: readarraudio
environment:
- PUID=${UID}
- PGID=${GID}
- TZ=${TZ}
- VIRTUAL_HOST=readarr-audio.${DOMAIN},readar-audio.${DOMAIN}
- VIRTUAL_PORT=8787
- VIRTUAL_HOST=readarraudio.${DOMAIN},readaraudio.${DOMAIN}
- LETSENCRYPT_HOST=readarraudio.${DOMAIN},readaraudio.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
volumes:
- ${CONFIG_LOCATION}/readarr-audio:/config
- ${DATA_LOCATION}/Audiobooks:/audiobooks
- /media/seedbox:/downloads
expose:
- "8788"
ports:
- 8788:8788
restart: unless-stopped
wordpress-botc:
depends_on:
@ -233,21 +278,25 @@ services:
WORDPRESS_DB_PASSWORD: ${DBPASS}
WORDPRESS_DB_NAME: clocktower
VIRTUAL_HOST: "botc.${DOMAIN}, *.phillybotc.com"
LETSENCRYPT_HOST: "botc.${DOMAIN}, *.phillybotc.com"
LETSENCRYPT_EMAIL: ${EMAIL}
volumes:
- wordpress-botc:/var/www/html
wordpress-home:
depends_on:
- db
image: wordpress
restart: always
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: ${DBPASS}
WORDPRESS_DB_NAME: homepage
VIRTUAL_HOST: "${DOMAIN}, www.${DOMAIN}"
volumes:
- wordpress-home:/var/www/html
# wordpress-home:
# depends_on:
# - db
# image: wordpress
# restart: always
# environment:
# WORDPRESS_DB_HOST: db
# WORDPRESS_DB_USER: root
# WORDPRESS_DB_PASSWORD: ${DBPASS}
# WORDPRESS_DB_NAME: homepage
# VIRTUAL_HOST: "${DOMAIN}, www.${DOMAIN}"
# LETSENCRYPT_HOST: "www.brodin.rocks"
# LETSENCRYPT_EMAIL: "bjageman@gmail.com"
# volumes:
# - wordpress-home:/var/www/html
db:
image: mysql:latest
restart: always
@ -271,12 +320,16 @@ services:
MYSQL_DATABASE: nextcloud
MYSQL_USER: root
MYSQL_PASSWORD: ${DBPASS}
REDIS_HOST: redis
LETSENCRYPT_HOST: nextcloud.${DOMAIN}
LETSENCRYPT_EMAIL: ${EMAIL}
# LETSENCRYPT_TEST: true
volumes:
- ${CONFIG_LOCATION}/nextcloud:/config
- ${DATA_LOCATION}/Cloud/Nextcloud:/data
restart: unless-stopped
volumes:
wordpress-home:
# wordpress-home:
wordpress-botc:
db: