Your comments

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.

According to this tutorial : https://www.qnap.com/en/how-to/tutorial/article/how-to-use-container-station
QNAP makes a default run and bind the ports by itself.

Anyway, you should find the binded ports on container station's interface :

(see the "URL" part under the "Running" status).


Regards,

zer

np ;)


I am working on a dev branch where Ubooquity installation is made at the run process and installs the latest version at this moment.

This should solve upgrade issue as users will only have to down and up their container to get latest Ubooquity.

Hi,


I am sorry, but I have no way to reproduce as I don't have a QNAP. So it's impossible for me to test this and try to solve the issue.


I don't even know how QNAP manage docker.
How does it works ? Do you have an interface ? a docker-compose ? do you run it directly through a "docker run" command ?


Regards,

zer

Hi,


I'm a bit late (didn't noticed that update, sorry), but I just updated my image to Ubooquity 2.1.0.


If someone fork my repository in order to do this kind of updates, don't hesitate to make a pull request so that I'll be noticed and merge the pull :)


Regards,

zerpex

Hi,


OK, so QNAP has it's own interface to manage containers installation. I don't know how it works, so I can't help, sorry :/

Actually, to install a container on a linux based server, U can use a file that is a kind of receipe used to set up all option, so you can specify the ports you want to use.


sorry.

Yes, it seems the mapping is not the default one. You used the docker-compose I made ?


Anyway, you should be able to find correct ports with "docker ps". This command show the mapping !

Humm, I must admit that I don't understand with these logs !

I am no Qnap specialist and don't know if there are subtilities :/

Maybe @kenji can help ?

Can you please post result of the following commands ?


docker ps

docker logs

Hi,


Try : 

2502/admin for console

2202 for app


Regards,

z.