0
Ubooquity with letsencrypt docker
Hello all I know this might not be the place to post this question but i have a slim hope someone here might be able to help me out i am using ubooquity on my unraid server the latest version i would like to setup a reverse proxy using the letsencrypt docker in unraid again im aware that this isnt the unraid forums i just imagine i cant be the only fan of this docker that would want to reverse proxy this application by these means any help would be eternally appreciated
Customer support service by UserEcho
I've answered your question on the Unraid forum
Premièrerment, créé un fichier .env et copie dedans le contenu suivant en adaptant les variables à ton besoin:
```
# Mail address used by let's encrypt:
LE_MAIL=you@mail.tld
# Path where you store appplication files:
PATH_APP=/opt
# Path of your media files:
PATH_MEDIA=/data/library
# Ubooquity urls:
UBOOQUITY_URL=ubooquity.domain.tld
UBOOQUITY_ADMIN_URL=ubooquityadmin.domain.tld
# Name docker's proxy network:
PROXY=traefik
```
Ensuite, créé un fichier docker-compose.yml avec le contenu suivant:
```
version: '2.4'
services:
#################
# Reverse Proxy #
#################
traefik:
restart: unless-stopped
image: traefik:alpine
container_name: proxy_traefik
hostname: traefik
command:
--defaultEntryPoints='http,https'
--web
--web.address=:8080
--entryPoints='Name:http Address::80 Redirect.EntryPoint:https'
--entryPoints='Name:https Address::443 TLS'
--acme
--acme.email=${LE_MAIL}
--acme.storage=/certs/acme.json
--acme.entryPoint=https
--acme.ondemand=false
--acme.onhostrule=true
--acme.httpChallenge.entryPoint=http
--docker
--docker.domain=traefik
--docker.watch
--docker.exposedbydefault=false
ports:
- "80:80"
- "443:443"
# - "8080:8080" # Statut page
volumes:
- ${PATH_APP}/letsencrypt/certs:/certs:rw
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- proxy
#############
# Ubooquity #
#############
ubooquity:
restart: always
image: zerpex/ubooquity-docker
container_name: stream-book_Ubooquity
hostname: library
labels:
- traefik.enable=true
- traefik.app.frontend.rule=Host:${UBOOQUITY_URL}
- traefik.app.port=2202
- traefik.admin.frontend.rule=Host:${UBOOQUITY_ADMIN_URL}
- traefik.admin.port=2502
- traefik.docker.network=${PROXY}
volumes:
- ${PATH_APP}/ubooquity/conf:/config:rw
- ${PATH_MEDIA}/comics:/media:rw
- /etc/localtime:/etc/localtime:ro
networks:
- proxy
networks:
proxy:
external:
name: ${PROXY}
```
Enfin, exécutes la commande suivante:
`docker-compose up -d `
Et voilà, plus qu'à te connecter sur ${UBOOQUITY_ADMIN_URL} pour faire ta conf et ${UBOOQUITY_URL} pour lire :)
Plus de détail sur mon dépôt : https://hub.docker.com/r/zerpex/ubooquity-docker/
z.