Skip to content

Commit

Permalink
Merge pull request #92 from archont00/patch-1
Browse files Browse the repository at this point in the history
Update README.md - Docker compose: volume mount correction and additional info
  • Loading branch information
Salvoxia authored Dec 29, 2024
2 parents f6c6e7e + 0267430 commit 32838d8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,19 +240,33 @@ services:
container_name: immich_server
volumes:
- /path/to/my/photos:/external_libs/photos
- /path/to/secret/file:/immich_api_key.secret:ro
...
immich-folder-album-creator:
container_name: immich_folder_album_creator
image: salvoxia/immich-folder-album-creator:latest
restart: unless-stopped
volumes:
- /path/to/secret/file:/immich_api_key.secret:ro
environment:
API_URL: http://immich_server:2283/api
API_KEY_FILE: /immich_api_key.secret
ROOT_PATH: /external_libs/photos
CRON_EXPRESSION: "0 * * * *"
TZ: Europe/Berlin
```
This will periodically re-scan the library as per `CRON_EXPRESSION` settings and create albums (the cron script sets `UNATTENDED=1` explicitly).
To perform a manually triggered __dry run__ (only list albums that __would__ be created) in an already running container, use the following command:
```
docker exec immich_folder_album_creator /bin/sh -c "/script/immich_auto_album.sh"
```
To actually create albums after performing the dry run, use the following command (setting the `UNATTENDED` environment variable):
```
docker exec immich_folder_album_creator /bin/sh -c "UNATTENDED=1 /script/immich_auto_album.sh"
```
### Choosing the correct `root_path`
Expand Down

0 comments on commit 32838d8

Please sign in to comment.