Dockerized image gallery server and frontend app. Build with Node.js
Browse your photo storage, filled with jpg or png files.
Primary not for production. Use it on your own risk. I use it in a LAN setup with a stand alone docker server (ubuntu 20 server) in combination with jwilder's nginx proxy.
- clone this repository
git clone ...
- rename the
config/.default.conf
todefault.config
This is the shared configuration file. Change:
STORE_ROOT_PATH=/path/to/my/photos
STORE_THUMBNAIL_PATH=/path/to/the/gallerythumbnails
- rename the file:
.env.default
to.env
This is the environment file for docker-compose. All keys from the default.config
can be overwritten with the environment:
keys in the docker-compose files.
STORE_ROOT_PATH=/path/to/my/photos
STORE_THUMBNAIL_PATH=/path/to/the/gallerythumbnails
-
The server app
docker-compose -f docker-compose-server.yml up -d
-
The generator app
-
Build the image
docker-compose -f docker-compose-generator.yml up -d
-
run it
docker-compose -f docker-compose-generator-replicas-binary.yml up -d
-
or run it in development
docker-compose -f docker-compose-generator-replicas.yml up -d
- The frontend build pipeline for development
- For live editing
docker-compose -f docker-compose-frontend.yml up -d
i use jwilder/nginx-proxy to map the apps on a qualified hostname.
- Just run before:
docker-compose -f docker-compose-proxy.yml
- edit your local
hosts
file. add:
xxx.xxx.xxx.xxx gallery.hostname
xxx.xxx.xxx.xxx frontend.gallery.hostname
- edit your
.env
and replacehostname
with your own
SERVER_VIRTUAL_HOST=gallery.hostname
FRONTEND_VIRTUAL_HOST=frontend.gallery.hostname