Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picture folder location #119

Closed
jerryhager opened this issue Jan 4, 2020 · 3 comments
Closed

Picture folder location #119

jerryhager opened this issue Jan 4, 2020 · 3 comments

Comments

@jerryhager
Copy link

I use the docker versio of pigallery
I want to change the picture folder to a external location, to accomplish this i created a bind volume which directs to a external loaction as a path (/data/pictures).

In the container the path exists and i can get to it in the container console.

I can not edit the folder location in the UI, is keeps turning back to the default location. editiing in de config.json file does not do te trick either.

What am I doing wrong?

Jhod

@bpatrik
Copy link
Owner

bpatrik commented Jan 4, 2020

Hi,

With docker tmp, images and these settings are fixed:

"--config-path=/app/data/config/config.json", \
"--Server-Database-dbFolder=/app/data/db", \
"--Server-Media-folder=/app/data/images", \
"--Server-Media-tempFolder=/app/data/tmp"]

They should not be changed within the container, rather you should point your volumes to the right folder on your host.

Edit docker-compose.yml here (change ./pigallery2/images to your images folder):

- "./pigallery2/config:/app/data/config"
- "db-data:/app/data/db"
- "./pigallery2/images:/app/data/images"
- "./pigallery2/tmp:/app/data/tmp"

Or set up the path correctly if you are running directly:

  -v <path to your config file folder>/config.json:/app/data/config/config.json \
   -v <path to your db file folder>:/app/data/db \
   -v <path to your images folder>:/app/data/images \
   -v <path to your temp folder>:/app/data/tmp \

If you really want to override these settings within docker, you can try setting them as environmental variables :

 environment:
 - Server-Media-folder=<your path>

Also this is related: #114

@jerryhager
Copy link
Author

jerryhager commented Jan 4, 2020

thanks for the quick reply, I tried the ENV variant but in capitals ;-(
Using them in normal letters did the trick!

Now experimenting with Pigallery, so far is looks very nice en exactly what I searched for!
Jerry

@bpatrik
Copy link
Owner

bpatrik commented Jan 5, 2020

I'm happy to hear!

@bpatrik bpatrik closed this as completed Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants