C4illin / ConvertX

💾 Self-hosted online file converter. Supports 800+ formats
GNU Affero General Public License v3.0
229 stars 3 forks source link

Volume empty ? #116

Closed ManuCloudd closed 2 weeks ago

ManuCloudd commented 3 weeks ago

hello, Installed the main version I customized the path via a volume.

Maybe I was wrong, but the data in the volume is not replicated. :(

copy the conf (be careful I'm new to docker :) )

in the container

image

in the host 'the volume is empty :'(

image

&

image

In any case, congratulations for your project and its incredible usefulness. I think that in the long term it will become a must have for anyone looking for self-hosting ^^ . Having such an open source and practical tool will become essential for many.

I am following the project :)

C4illin commented 3 weeks ago

What does your compose file look like?

ManuCloudd commented 3 weeks ago

What does your compose file look like? Hello This image

C4illin commented 3 weeks ago

Test without PGID and PUID

luis-c465 commented 3 weeks ago

What does your compose file look like? Hello This image

Looking at the docker compose file, it looks like you put the volume mount point wrong :)

It should be /app/data and not /data

So the final docker compose file would be the following:

version: "3"
# docker-compose.yml
services:
  convertx: 
    image: ghcr.io/c4illin/convertx
    container_name: convertx
    restart: unless-stopped # <- You may also want this, makes the container restart if it crashes
    ports:
      - "34444:3000"
    environment: # Defaults are listed below. All are optional.
      #- ACCOUNT_REGISTRATION=false # true or false, doesn't matter for the first account (e.g. keep this to false if you only want one account)
      - JWT_SECRET=aLongAndSecretStringUsedToSignTheJSONWebToken1234 # will use randomUUID() by default
      - HTTP_ALLOWED=true # setting this to true is unsafe, only set this to true locally
    volumes:
      - convertx_data:/app/data # <- The volume mount point

volumes:
  convertx_data:

Let me know if this compose file works!

ManuCloudd commented 3 weeks ago

Hello @luis-c465

Yes it(s ok now. But it's curious and not "'usual" with docker. no? Because docker should be authorized the place where we want the data to be in the container

example: Dashy another container, is in a volume but distributed in different directories

image

C4illin commented 2 weeks ago

The directory structure can be whatever in a docker container. Maybe having /data would make more sense but this works as well.