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 #1051

Answered by acelaya
lfac76 asked this question in Q&A
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: 3 comments 1 reply

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
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1050 on February 01, 2024 13:50.