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

how to change directory to store the images #813

Open
arr111 opened this issue Jan 17, 2024 · 1 comment
Open

how to change directory to store the images #813

arr111 opened this issue Jan 17, 2024 · 1 comment
Labels

Comments

@arr111
Copy link

arr111 commented Jan 17, 2024

I have docker compose as below

version: '3'
services:
nginx:
image: nginx:latest
container_name: nginx
volumes:
- /opt/nginx/conf:/etc/nginx/conf
- /opt/nginx/logs:/etc/nginx/log
- /opt/nginx/cache/:/etc/nginx/cache
- /opt/nginx/letsencrypt/:/etc/letsencrypt/
ports:
- 890:890
- 4243:4243
restart: always

pigallery2:
image: bpatrik/pigallery2:latest
container_name: pigallery2
environment:
- NODE_ENV=production # set to 'debug' for full debug logging
# - NODE_OPTIONS=--enable-source-maps # enable source map support on the backend for development
volumes:
- /opt/pigallery2/config:/app/data/config # CHANGE ME
- "db-data:/app/data/db"
- /opt/pigallery2/images:/app/data/images:ro # CHANGE ME, ':ro' means read-only
- /opt/pigallery2/tmp:/app/data/tmp # CHANGE ME
expose:
- "80"
restart: always

volumes:
db-data:

dir default is /opt/pigallery2/images:/app/data/images

I want to replace /opt/pigallery2 /images with /mnt/sda1/images

every time I change it, the photo is in the /mnt/sda1/images directory.

images are not detected, did I set it wrong?

sorry, this post was made by translation
I hope you understand
thanks verry much

@bpatrik
Copy link
Owner

bpatrik commented Feb 8, 2024

Not sure If I understand, but I think you need change:
- /mnt/sda1/images:/app/data/images:ro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants