added photoprism

This commit is contained in:
msnie
2024-02-27 15:29:56 +01:00
parent fbf8314776
commit 51e2b9c6d0
3 changed files with 34 additions and 1 deletions
+5
View File
@@ -9,3 +9,8 @@ services:
- 8000:8000 - 8000:8000
volumes: volumes:
- /srv/archive_box:/data - /srv/archive_box:/data
networks:
- traefik
networks:
traefik:
external: true
+20
View File
@@ -2,6 +2,8 @@ version: "3.8"
services: services:
immich-server: immich-server:
networks:
- traefik
container_name: immich_server container_name: immich_server
image: ghcr.io/immich-app/immich-server:release image: ghcr.io/immich-app/immich-server:release
entrypoint: ["/bin/sh", "./start-server.sh"] entrypoint: ["/bin/sh", "./start-server.sh"]
@@ -16,6 +18,8 @@ services:
restart: always restart: always
immich-microservices: immich-microservices:
networks:
- traefik
container_name: immich_microservices container_name: immich_microservices
image: ghcr.io/immich-app/immich-server:release image: ghcr.io/immich-app/immich-server:release
entrypoint: ["/bin/sh", "./start-microservices.sh"] entrypoint: ["/bin/sh", "./start-microservices.sh"]
@@ -30,6 +34,8 @@ services:
restart: always restart: always
immich-machine-learning: immich-machine-learning:
networks:
- traefik
container_name: immich_machine_learning container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:release image: ghcr.io/immich-app/immich-machine-learning:release
volumes: volumes:
@@ -40,6 +46,8 @@ services:
restart: always restart: always
immich-web: immich-web:
networks:
- traefik
container_name: immich_web container_name: immich_web
image: ghcr.io/immich-app/immich-web:release image: ghcr.io/immich-app/immich-web:release
entrypoint: ["/bin/sh", "./entrypoint.sh"] entrypoint: ["/bin/sh", "./entrypoint.sh"]
@@ -54,6 +62,8 @@ services:
# - "traefik.http.services.imm.loadbalancer.server.port=32400" # - "traefik.http.services.imm.loadbalancer.server.port=32400"
typesense: typesense:
networks:
- traefik
container_name: immich_typesense container_name: immich_typesense
image: typesense/typesense:0.24.0 image: typesense/typesense:0.24.0
environment: environment:
@@ -68,9 +78,13 @@ services:
redis: redis:
container_name: immich_redis container_name: immich_redis
image: redis:6.2 image: redis:6.2
networks:
- traefik
restart: always restart: always
database: database:
networks:
- traefik
container_name: immich_postgres container_name: immich_postgres
image: postgres:14 image: postgres:14
env_file: env_file:
@@ -85,6 +99,8 @@ services:
restart: always restart: always
immich-proxy: immich-proxy:
networks:
- traefik
container_name: immich_proxy container_name: immich_proxy
image: ghcr.io/immich-app/immich-proxy:release image: ghcr.io/immich-app/immich-proxy:release
environment: environment:
@@ -103,3 +119,7 @@ services:
# pgdata: # pgdata:
# model-cache: # model-cache:
# tsdata: # tsdata:
networks:
traefik:
external: true
+8
View File
@@ -28,6 +28,8 @@ version: '3.5'
services: services:
photoprism: photoprism:
networks:
- traefik
image: photoprism/photoprism:latest image: photoprism/photoprism:latest
restart: unless-stopped restart: unless-stopped
stop_grace_period: 10s stop_grace_period: 10s
@@ -83,6 +85,8 @@ services:
- "traefik.http.routers.photoprism.tls.certresolver=letsencr" - "traefik.http.routers.photoprism.tls.certresolver=letsencr"
- "traefik.http.services.photoprism.loadbalancer.server.port=2342" - "traefik.http.services.photoprism.loadbalancer.server.port=2342"
mariadb: mariadb:
networks:
- traefik
image: mariadb:11 image: mariadb:11
restart: unless-stopped restart: unless-stopped
stop_grace_period: 5s stop_grace_period: 5s
@@ -110,3 +114,7 @@ services:
volumes: volumes:
- "/var/run/docker.sock:/var/run/docker.sock" - "/var/run/docker.sock:/var/run/docker.sock"
# - "~/.docker/config.json:/config.json" # optional, for authentication if you have a Docker Hub account # - "~/.docker/config.json:/config.json" # optional, for authentication if you have a Docker Hub account
networks:
traefik:
external: true