Comments

This profile is from a federated server and may be incomplete. Browse more on the original instance.

mouse, to selfhosted in SOLVED. Has anyone installed Shotshare using docker-compose ?
@mouse@midwest.social avatar

You’re welcome! Also thanks for asking this question, I hadn’t seen ShotShare before, it looks useful.

mouse, to selfhosted in SOLVED. Has anyone installed Shotshare using docker-compose ?
@mouse@midwest.social avatar

No, since you are using the bind mount, you do not need to use the volume.

mouse, (edited ) to selfhosted in SOLVED. Has anyone installed Shotshare using docker-compose ?
@mouse@midwest.social avatar

I just did another test.

You should be able to create the directories manually. I cheated by simply cloning the repo and copying them to the bind mount location like so. You can use the bind mount method like you wanted.


<span style="color:#323232;">git clone https://github.com/mdshack/shotshare
</span><span style="color:#323232;">cp -r shotshare/storage/* /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/shotshare_data/
</span><span style="color:#323232;">chown 82:82 -R /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/shotshare_data
</span>
mouse, to selfhosted in SOLVED. Has anyone installed Shotshare using docker-compose ?
@mouse@midwest.social avatar

It will be stored in /var/lib/docker/volumes, you can find the exact location by inspecting the volume. Use docker volume ls to list the volumes, and do docker volume inspect <volume_name> replacing <volume_name> with the one from the list. Look for “Mountpoint”, that is the exact location. You could try copying that to bind mount location, though I can’t be sure if it will continue to work.

mouse, (edited ) to selfhosted in SOLVED. Has anyone installed Shotshare using docker-compose ?
@mouse@midwest.social avatar

This appears to be the exact same problem as github.com/mdshack/shotshare/issues/31

For testing I just spun up a VM with Docker, I tried the same compose file as you. I found I had to use the volume instead of a bind mount for /app/storage.

This compose file should work.


<span style="color:#323232;">version: "3.3"
</span><span style="color:#323232;">services:
</span><span style="color:#323232;">  shotshare:
</span><span style="color:#323232;">    ports:
</span><span style="color:#323232;">      - 2000:80
</span><span style="color:#323232;">    environment:
</span><span style="color:#323232;">      - HOST=:80
</span><span style="color:#323232;">      - ALLOW_REGISTRATION=false
</span><span style="color:#323232;">    volumes:
</span><span style="color:#323232;">      - shotshare_data:/app/storage
</span><span style="color:#323232;">      - /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/database.sqlite:/app/database/database.sqlite
</span><span style="color:#323232;">      - /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/.env:/app/.env
</span><span style="color:#323232;">    restart: unless-stopped
</span><span style="color:#323232;">    container_name: shotshare
</span><span style="color:#323232;">    image: mdshack/shotshare:latest
</span><span style="color:#323232;">volumes:
</span><span style="color:#323232;">    shotshare_data:
</span><span style="color:#323232;">networks: {}
</span>
mouse, to selfhosted in LinguaCafe - Confused why the provided docker-compose doesn't work.
@mouse@midwest.social avatar

That error message says it the permissions of the /home/user/Documents/Docker/LinguaCafe/logs directory. You can try changing it full r/w temporarily to test.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #