8000 Error `not a directory: unknown: Are you trying to mount a directory onto a file` with v4.0.1's docker container · shlinkio · Discussion #19 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Error not a directory: unknown: Are you trying to mount a directory onto a file with v4.0.1's docker container #19

Answered by acelaya
lfac76 asked this question in Help wanted
Discussion options

You must be logged in to vote

This can only be reproduced if the /home/ubuntu/dockge/stacks/shlink/servers.json file does not exist in the local machine.

Since it doesn't make sense to mount that file if it doesn't exist, as shlink-web-client does not generate servers there, simply drop the the volume and it will work.

Also, with v4.x, the port exposed by the container is 8080, not 80.

version: "3"
services:
  shlink:
    image: shlinkio/shlink:latest
    restart: unless-stopped
    container_name: shlink-backend
    environment:
      - TZ="America/Sao_Paulo"
      - DEFAULT_DOMAIN=links.lfac.net.br
      - IS_HTTPS_ENABLED=true
      - GEOLITE_LICENSE_KEY=${GEO}
      - DB_DRIVER=maria
      - DB_USER=shlink
      -…

Replies: 0 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lfac76
Comment options

Answer selected by acelaya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Shlink Web Client Discussions related with https://github.com/shlinkio/shlink-web-client
2 participants
0