https://github.com/michaelcoll/gallery-daemon
The daemon for the gallery app
https://github.com/michaelcoll/gallery-daemon
Last synced: 6 months ago
JSON representation
The daemon for the gallery app
- Host: GitHub
- URL: https://github.com/michaelcoll/gallery-daemon
- Owner: michaelcoll
- License: apache-2.0
- Created: 2022-08-20T09:01:24.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-12-24T06:05:40.000Z (6 months ago)
- Last Synced: 2025-12-25T19:30:07.450Z (6 months ago)
- Language: Go
- Homepage:
- Size: 23.4 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

A simple decentralized photo gallery
# gallery-daemon
The daemon for the gallery app
## Usage
### Indexation only
```
$ ./gallery-daemon index --help
Starts the daemon in index mode only.
Indexes the given folder and create a database file.
Usage:
gallery-daemon index [flags]
Flags:
-h, --help help for index
Global Flags:
-f, --folder string The folder containing the photos (default ".")
--local-db Place the database in the current folder
--verbose Verbose display
```
### Serve
```
$ ./gallery-daemon serve --help
Starts the daemon in server mode.
In this mode it will :
- index the images if the database is not up-to-date
- register the daemon to the backend
- watch for file changes
- serve backend requests
Usage:
gallery-daemon serve [flags]
Flags:
-H, --external-host string External host (default "localhost")
-h, --help help for serve
-n, --name string Daemon name (default "localhost-daemon")
-o, --owner string Daemon owner email (default "no@name.com")
-p, --port int32 Grpc Port (default 9000)
--re-index Launch a full re-indexation
Global Flags:
-f, --folder string The folder containing the photos (default ".")
--local-db Place the database in the current folder
--verbose Verbose display
```
## Exemple

## Docker image usage
```
docker run -ti --rm \
-e OWNER=owner@mail.com \
-e DAEMON_NAME=docker-daemon \
-v ~/Images/Photos:/media \
-p 9001:9000 \
ghcr.io/michaelcoll/gallery-daemon:latest
```