Install rgallery with Docker or Docker Compose
Prerequisites
The following prerequisites are required to install rgallery with Docker or Docker Compose:
Docker
In a terminal, run the following command:
docker run \
-v ./media:/media:ro \ # path to your media files
-v ./data:/data \ # path to the rgallery database directory
-v ./cache:/cache \ # path to the rgallery cache directory
-p 3000:3000 \
robbymilo/rgallery:latest
The application will be available at http://localhost:3000.
Docker Compose
services:
rgallery:
image: robbymilo/rgallery:latest
# entrypoint:
# - rgallery
# - --data=./data # override database directory
# - --cache=./cache # override cache directory
# - --quality=60 # override thumbnail quality
# - --location_dataset=Countries10 # use lower resolution reverse geocode dataset
# - --tile_server=https://tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=<replace-with-your-API-key>
# - --include-originals=true # include originals in web view.
# platform: linux/arm64
platform: linux/amd64
volumes:
- ./images:/images:ro # path to your media files
- ./data:/data # path to the rgallery database directory
- ./cache:/cache # path to the rgallery cache directory
ports:
- 3000:3000
and then run
docker compose up -d
The application will be available at http://localhost:3000.
With docker compose in scalable mode:
services:
rgallery:
image: robbymilo/rgallery:latest
# entrypoint:
# - rgallery
# - --data=./data # override database directory
# - --cache=./cache # override cache directory
# - --quality=60 # override thumbnail quality
# - --location_dataset=Countries10 # use lower resolution reverse geocode dataset
# - --tile_server=https://tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=<replace-with-your-API-key>
# - --include-originals=true # include originals in web view.
# platform: linux/arm64
platform: linux/amd64
environment:
- RGALLERY_RESIZE_SERVICE=http://goresize:3001
- RGALLERY_LOCATION_SERVICE=http://gogeo:3002
volumes:
- ./images:/images:ro # path to your media files
- ./data:/data # path to the rgallery database directory
- ./cache:/cache # path to the rgallery cache directory
ports:
- 3000:3000
goresize:
image: robbymilo/rgallery:resize-latest
deploy:
mode: replicated
replicas: 3
# platform: linux/arm64
platform: linux/amd64
ports:
- 3001
gogeo:
image: robbymilo/rgallery:geo-latest
# platform: linux/arm64
platform: linux/amd64
ports:
- 3002
and then run:
docker compose -d -f docker-compose-scalable.yml up --scale goresize=3
The application will be available at http://localhost:3000.