Fix crowdsec integration

This commit is contained in:
debian
2024-08-11 16:49:10 +02:00
parent fd083af6d3
commit 05e9cb896d
12 changed files with 696 additions and 39 deletions

View File

@@ -25,4 +25,4 @@ services:
- "traefik.http.routers.audiobookshelf.tls.certresolver=myresolver"
- 'traefik.http.routers.audiobookshelf.tls=true'
# Middlewares
# - "traefik.http.routers.audiobookshelf.middlewares=crowdsec-bouncer@file"
- "traefik.http.routers.audiobookshelf.middlewares=crowdsec-bouncer@file"

View File

@@ -12,6 +12,7 @@ services:
DB_DATABASE_NAME: immich
REDIS_HOSTNAME: redis
volumes:
# to mount the trueNas external library: sudo mount 192.168.1.212:/mnt/hdd-storage/vm-external-storage/immich /mnt/external-storage/immich/
- ${IMMICH_EXTERNAL_PATH}:/usr/src/app/external:ro
- ${MEDIA_PATH}/immich/data/library:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
@@ -29,30 +30,7 @@ services:
- "traefik.http.routers.immich-server.tls.certresolver=myresolver"
- 'traefik.http.routers.immich-server.tls=true'
# Middlewares
# - "traefik.http.routers.immich-server.middlewares=crowdsec-bouncer@file"
immich-microservices:
extends:
file: ${TEMPLATES_PATH}
service: default
container_name: immich_microservices
image: ghcr.io/immich-app/immich-server:release
command: [ "start.sh", "microservices" ]
environment:
DB_PASSWORD: ${IMMICH_DB_PASSWORD}
DB_HOSTNAME: postgres-with-pg-vector
DB_USERNAME: immich
DB_DATABASE_NAME: immich
REDIS_HOSTNAME: redis
networks:
- ip6net
volumes:
- ${IMMICH_EXTERNAL_PATH}:/usr/src/app/external
- ${MEDIA_PATH}/immich/data/library:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
labels:
# Watchtower
- "com.centurylinklabs.watchtower.enable=true"
- "traefik.http.routers.immich-server.middlewares=crowdsec-bouncer@file"
immich-machine-learning:
extends:
@@ -64,4 +42,19 @@ services:
- ${MEDIA_PATH}/immich/data/model-cache:/cache
labels:
# Watchtower
- "com.centurylinklabs.watchtower.enable=true"
- "com.centurylinklabs.watchtower.enable=true"
# https://github.com/Salvoxia/immich-folder-album-creator
# one time run:
# docker run -e API_URL="https://immich.crescentec.xyz/api/" -e API_KEY="qTaebdVMtph9yD0pSJRJDQJkDEpexiXNMJ5V5HBEnA" -e ROOT_PATH="/usr/src/app/external" salvoxia/immich-folder-album-creator:latest /script/immich_auto_album.sh
immich-folder-album-creator:
extends:
file: ${TEMPLATES_PATH}
service: default
container_name: immich_folder_album_creator
image: salvoxia/immich-folder-album-creator:latest
environment:
API_URL: https://immich.crescentec.xyz/api
API_KEY: qTaebdVMtph9yD0pSJRJDQJkDEpexiXNMJ5V5HBEnA
ROOT_PATH: /usr/src/app/external
CRON_EXPRESSION: "0 * * * *"