mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
Fix docker-compose in production (#81)
* Fixed problem with docker-compose not updating new files in the multi-stage build. * Update readme with a new screenshot
This commit is contained in:
@@ -5,7 +5,6 @@ services:
|
||||
image: immich-server:1.4.0
|
||||
build:
|
||||
context: ../server
|
||||
target: production
|
||||
dockerfile: ../server/Dockerfile
|
||||
command: npm run start:prod
|
||||
expose:
|
||||
@@ -16,6 +15,8 @@ services:
|
||||
- /usr/src/app/node_modules
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
depends_on:
|
||||
- redis
|
||||
- database
|
||||
@@ -26,7 +27,6 @@ services:
|
||||
image: immich-microservices:1.4.0
|
||||
build:
|
||||
context: ../microservices
|
||||
target: production
|
||||
dockerfile: ../microservices/Dockerfile
|
||||
command: npm run start:prod
|
||||
expose:
|
||||
@@ -37,6 +37,8 @@ services:
|
||||
- /usr/src/app/node_modules
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
depends_on:
|
||||
- database
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user