From 260a600bbce8e8dbc70b9479a0fa4a5f9b3c27af Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Tue, 3 Oct 2023 14:06:08 -0400 Subject: [PATCH] chore(server): dev compose changes (#4316) --- docker/docker-compose.dev.yml | 48 +++++++++++++++++------------------ 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.yml index 366052d1f7..a69a053c14 100644 --- a/docker/docker-compose.dev.yml +++ b/docker/docker-compose.dev.yml @@ -11,7 +11,7 @@ services: command: npm run start:debug immich volumes: - ../server:/usr/src/app - - ${UPLOAD_LOCATION}:/usr/src/app/upload + - ${UPLOAD_LOCATION}/photos:/usr/src/app/upload - /usr/src/app/node_modules - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro @@ -27,25 +27,6 @@ services: - database - typesense - immich-machine-learning: - container_name: immich_machine_learning - image: immich-machine-learning-dev:latest - build: - context: ../machine-learning - dockerfile: Dockerfile - ports: - - 3003:3003 - volumes: - - ../machine-learning:/usr/src/app - - model-cache:/cache - env_file: - - .env - environment: - - NODE_ENV=development - depends_on: - - database - restart: unless-stopped - immich-microservices: container_name: immich_microservices image: immich-microservices:latest @@ -59,7 +40,7 @@ services: command: npm run start:debug microservices volumes: - ../server:/usr/src/app - - ${UPLOAD_LOCATION}:/usr/src/app/upload + - ${UPLOAD_LOCATION}/photos:/usr/src/app/upload - /usr/src/app/node_modules - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro @@ -98,6 +79,25 @@ services: depends_on: - immich-server + immich-machine-learning: + container_name: immich_machine_learning + image: immich-machine-learning-dev:latest + build: + context: ../machine-learning + dockerfile: Dockerfile + ports: + - 3003:3003 + volumes: + - ../machine-learning:/usr/src/app + - model-cache:/cache + env_file: + - .env + environment: + - NODE_ENV=development + depends_on: + - database + restart: unless-stopped + typesense: container_name: immich_typesense image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd @@ -107,7 +107,7 @@ services: # remove this to get debug messages - GLOG_minloglevel=1 volumes: - - tsdata:/data + - ${UPLOAD_LOCATION}/typesense:/data redis: container_name: immich_redis @@ -123,7 +123,7 @@ services: POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} volumes: - - pgdata:/var/lib/postgresql/data + - ${UPLOAD_LOCATION}/postgres:/data ports: - 5432:5432 @@ -145,6 +145,4 @@ services: restart: unless-stopped volumes: - pgdata: model-cache: - tsdata: