2022-09-11 10:52:06 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
immich-server:
|
2022-09-24 15:10:02 +00:00
|
|
|
container_name: immich-server
|
2022-09-11 10:52:06 +00:00
|
|
|
image: altran1502/immich-server:release
|
|
|
|
entrypoint: ["/bin/sh", "./start-server.sh"]
|
|
|
|
volumes:
|
2022-09-24 16:09:54 +00:00
|
|
|
- ${ROOT_FOLDER_HOST}/media/data/images/immich:/usr/src/app/upload
|
2022-09-11 10:52:06 +00:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
2022-09-24 15:10:02 +00:00
|
|
|
- DB_HOSTNAME=immich-db
|
2022-09-11 10:52:06 +00:00
|
|
|
- DB_USERNAME=tipi
|
|
|
|
- DB_PASSWORD=${DB_PASSWORD}
|
2022-09-24 15:10:02 +00:00
|
|
|
- ENABLE_MAPBOX=false
|
|
|
|
- DB_DATABASE_NAME=immich
|
2022-09-11 10:52:06 +00:00
|
|
|
- REDIS_HOSTNAME=immich-redis
|
|
|
|
- JWT_SECRET=${JWT_SECRET}
|
|
|
|
depends_on:
|
|
|
|
- immich-redis
|
|
|
|
- immich-db
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
|
|
|
|
|
|
|
immich-microservices:
|
2022-09-24 15:10:02 +00:00
|
|
|
container_name: immich-microservices
|
2022-09-11 10:52:06 +00:00
|
|
|
image: altran1502/immich-server:release
|
|
|
|
entrypoint: ["/bin/sh", "./start-microservices.sh"]
|
|
|
|
volumes:
|
2022-09-24 16:09:54 +00:00
|
|
|
- ${ROOT_FOLDER_HOST}/media/data/images/immich:/usr/src/app/upload
|
2022-09-11 10:52:06 +00:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
2022-09-24 15:10:02 +00:00
|
|
|
- DB_HOSTNAME=immich-db
|
2022-09-11 10:52:06 +00:00
|
|
|
- DB_USERNAME=tipi
|
|
|
|
- DB_PASSWORD=${DB_PASSWORD}
|
2022-09-24 15:10:02 +00:00
|
|
|
- DB_DATABASE_NAME=immich
|
2022-09-11 10:52:06 +00:00
|
|
|
- REDIS_HOSTNAME=immich-redis
|
|
|
|
- JWT_SECRET=${JWT_SECRET}
|
2022-09-24 15:10:02 +00:00
|
|
|
- ENABLE_MAPBOX=false
|
2022-09-11 10:52:06 +00:00
|
|
|
depends_on:
|
|
|
|
- immich-redis
|
|
|
|
- immich-db
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
|
|
|
|
|
|
|
immich-machine-learning:
|
2022-09-24 15:10:02 +00:00
|
|
|
container_name: immich-machine-learning
|
2022-09-11 10:52:06 +00:00
|
|
|
image: altran1502/immich-machine-learning:release
|
|
|
|
entrypoint: ["/bin/sh", "./entrypoint.sh"]
|
|
|
|
volumes:
|
2022-09-24 16:09:54 +00:00
|
|
|
- ${ROOT_FOLDER_HOST}/media/data/images/immich:/usr/src/app/upload
|
2022-09-11 10:52:06 +00:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
2022-09-24 15:10:02 +00:00
|
|
|
- DB_HOSTNAME=immich-db
|
2022-09-11 10:52:06 +00:00
|
|
|
- DB_USERNAME=tipi
|
|
|
|
- DB_PASSWORD=${DB_PASSWORD}
|
|
|
|
- DB_NAME=immich
|
2022-09-24 15:10:02 +00:00
|
|
|
- DB_DATABASE_NAME=immich
|
2022-09-11 10:52:06 +00:00
|
|
|
depends_on:
|
|
|
|
- immich-db
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
|
|
|
|
|
|
|
immich-web:
|
2022-09-24 15:10:02 +00:00
|
|
|
container_name: immich-web
|
2022-09-11 10:52:06 +00:00
|
|
|
image: altran1502/immich-web:release
|
|
|
|
entrypoint: ["/bin/sh", "./entrypoint.sh"]
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
|
|
|
|
|
|
|
immich-redis:
|
|
|
|
container_name: immich-redis
|
|
|
|
image: redis:6.2
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
|
|
|
|
|
|
|
immich-db:
|
|
|
|
container_name: immich-db
|
|
|
|
image: postgres:14
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
|
|
POSTGRES_USER: tipi
|
|
|
|
POSTGRES_DB: immich
|
|
|
|
PG_DATA: /var/lib/postgresql/data
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data/db:/var/lib/postgresql/data
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
|
|
|
|
|
|
|
immich:
|
|
|
|
container_name: immich
|
|
|
|
image: altran1502/immich-proxy:release
|
|
|
|
ports:
|
2022-09-24 15:10:02 +00:00
|
|
|
- ${APP_PORT}:8080
|
2022-09-11 10:52:06 +00:00
|
|
|
depends_on:
|
2022-09-24 15:10:02 +00:00
|
|
|
- immich-web
|
2022-09-11 10:52:06 +00:00
|
|
|
- immich-server
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
|
|
|
labels:
|
|
|
|
traefik.enable: ${APP_EXPOSED}
|
|
|
|
traefik.http.routers.immich.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.immich.entrypoints: websecure
|
|
|
|
traefik.http.routers.immich.service: immich
|
|
|
|
traefik.http.routers.immich.tls.certresolver: myresolver
|
2022-09-24 15:10:02 +00:00
|
|
|
traefik.http.services.immich.loadbalancer.server.port: 8080
|
2022-09-11 10:52:06 +00:00
|
|
|
|
|
|
|
|