Add production and development docker-compose (#77)

This commit is contained in:
Alex
2022-03-27 15:17:58 -05:00
committed by GitHub
parent dd9c5244fd
commit 041c711cb9
4 changed files with 97 additions and 11 deletions

View File

@@ -2,13 +2,12 @@ version: "3.8"
services:
immich_server:
image: immich-server-dev:1.3.2
image: immich-server:1.3.2
build:
context: ../server
target: development
target: production
dockerfile: ../server/Dockerfile
entrypoint: ["/bin/sh", "./entrypoint.sh"]
# command: npm run start:dev
command: npm run start:prod
expose:
- "3000"
volumes:
@@ -24,12 +23,12 @@ services:
- immich_network
immich_microservices:
image: immich-microservices-dev:1.3.2
image: immich-microservices:1.3.2
build:
context: ../microservices
target: development
target: production
dockerfile: ../microservices/Dockerfile
command: npm run start:dev
command: npm run start:prod
expose:
- "3001"
volumes: