From f9ddeac26582d58d941a097fd7a6ac81c8736507 Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Tue, 29 Mar 2022 20:17:40 -0500 Subject: [PATCH] Fixed issue with container cannot find module --- docker/docker-compose.yml | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 4df5d4c750..0f4944c4cb 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -6,12 +6,13 @@ services: build: context: ../server dockerfile: ../server/Dockerfile - entrypoint: ["/bin/sh", "./entrypoint.sh"] - restart: unless-stopped + command: npm run start:prod expose: - "3000" volumes: + - ../server:/usr/src/app - ${UPLOAD_LOCATION}:/usr/src/app/upload + - /usr/src/app/node_modules env_file: - .env environment: @@ -27,12 +28,13 @@ services: build: context: ../microservices dockerfile: ../microservices/Dockerfile - entrypoint: ["/bin/sh", "./entrypoint.sh"] - restart: unless-stopped + command: npm run start:prod expose: - "3001" volumes: + - ../microservices:/usr/src/app - ${UPLOAD_LOCATION}:/usr/src/app/upload + - /usr/src/app/node_modules env_file: - .env environment: @@ -81,7 +83,28 @@ services: depends_on: - immich_server + # immich_tf_fastapi: + # container_name: immich_tf_fastapi + # image: tensor_flow_fastapi:1.0.0 + # restart: always + # command: uvicorn app.main:app --proxy-headers --host 0.0.0.0 --port 8000 --reload + # build: + # context: ../machine_learning + # target: cpu + # dockerfile: ../machine_learning/Dockerfile + # volumes: + # - ../machine_learning/app:/code/app + # - ${UPLOAD_LOCATION}:/code/app/upload + # ports: + # - 2285:8000 + # expose: + # - "8000" + # depends_on: + # - database + # networks: + # - immich_network + networks: immich_network: volumes: - pgdata: + pgdata: \ No newline at end of file