• 돌아가기
  • 아래로
  • 위로
  • 목록
  • 댓글
질문

docker immich 도움 요청

모랄로 모랄로 209

0

10

안녕하세요 지나가는 문과생입니다

 

저는 컴파일은 완벽하고 도커도 문제없이 구동 되어서 문제없다고 생각했습니다

 

잘못된 질문을 드려서 죄송합니다.. 

 

 

  다시 글 작성합니다 

컴파일 내용 전문

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: ['start.sh', 'immich']
    volumes:
      - /volume2/Immich:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - example.env
    ports:
      - 2283:3001
    depends_on:
      - redis
      - database
    restart: always

  immich-microservices:
    container_name: immich_microservices
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/hardware-transcoding
    #   file: hwaccel.transcoding.yml
    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    command: ['start.sh', 'microservices']
    volumes:
      - /volume2/Immich:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - example.env
    depends_on:
      - redis
      - database
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
    env_file:
      - example.env
    restart: always

  redis:
    container_name: immich_redis
    image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5
    restart: always

  database:
    container_name: immich_postgres
    image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    environment:
      POSTGRES_PASSWORD: postgres
      POSTGRES_USER: postgres
      POSTGRES_DB: immich
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always

volumes:
  pgdata:
  model-cache:
상기 내용으로 하여  도커 프로젝트 컴파일 하였고 정상 구동을 확인 하였습니다
그리고  좀전에 하기 오류를 확인 하였습니다 
오류 스크린샷 
이미지2024-0406-1334 (2).jpg
신고공유스크랩
10
profile image 1등
빨간물약 2024.04.06. 14:02

volumes:
- pgdata:/var/lib/postgresql/data

데이터 베이스에 있는 볼륨을 시놀로지에 맞게 수정해보세요

 

저는 아래글을 봤기 때문에 짐작할 수 있지만

시놀로지 dsm7.2 에서 도커로 설치 했다는 정보도 적어 주시면 좋겠네요

 

그리고 컨테이너 매니저로 설치 하셨으면 docker 폴더 안에 폴더를 만드는 게 좋습니다

다른 폴더는 권한 문제가 생길 수 있거든요

 

immich 폴더 안에 pgdata 폴더 만드셨으면 전체 경로를 적어 보세요

profile image
빨간물약 2024.04.06. 14:12
모랄로
그리고 .env는 굳이 이름 안바꾸고 그냥 쓰셔도 됩니다 .env파일로요 

데이터베이스 컨테이너도 .env로 설정하는 방식인데 위에서 쭉 .env파일로 쓰셨으면

데이터베이스도 .env로 설정 하는 게 더 좋을 거 같네요
profile image
모랄로 글쓴이 2024.04.06. 14:24
빨간물약
.env 수정해서 컴파일 새로 하겠습니다

괜찬으시면 밑에 댓글에 주석 부분한번 봐주시면 좋겠습니다
profile image
빨간물약 2024.04.06. 14:28
모랄로

네 저렇게 진행 하시면 되겠습니다
볼륨2에 이미치 업로드 사진을 저장 하시려는 거 같은데
문제 없을 거 같습니다

 

그런데 이미치 서버랑 마이크로 서비스랑 .env파일 이름이 다르네요

profile image 2등
모랄로 글쓴이 2024.04.06. 14:21
database:
container_name: immich_postgres
image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: immich
volumes:
- /volume1/docker/Immich #도커 데이터 저장위치 pgdata:/var/lib/postgresql/data
restart: always
profile image 3등
모랄로 글쓴이 2024.04.06. 14:22
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
command: ['start.sh', 'immich']
volumes:
- /volume2/Immich:/usr/src/app/upload #사진파일저장위치
- /etc/localtime:/etc/localtime:ro
env_file:
- example.env
ports:
- 2283:3001
depends_on:
- redis
- database
restart: always

immich-microservices:
container_name: immich_microservices
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/hardware-transcoding
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
command: ['start.sh', 'microservices']
volumes:
- /volume2/Immich:/usr/src/app/upload #사진파일저장위치
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
depends_on:
- redis
- database
restart: always
훔친수건 2024.04.06. 15:01
immich_server 컨테이너에서 DB에 접속하려고 하는데 이 컨테이너가 알고 있는 DB 비밀번호가 database 컨테이너에서 명시한 POSTGRES_PASSWORD와 다른 것 같습니다.

immich_server 컨테이너는 evn_file: [example.env]에 입력한 DB_PASSWORD을 DB 접속시 사용합니다.

댓글 쓰기 권한이 없습니다. 로그인

취소 댓글 등록

cmt alert

신고

"님의 댓글"

이 댓글을 신고하시겠습니까?

댓글 삭제

"님의 댓글"

삭제하시겠습니까?


목록

공유

facebooktwitterpinterestbandkakao story

첨부 0

번호 제목 글쓴이 날짜 조회 추천
공지 DSM 7.2v) Mshell로 헤놀로지 부트로더 빌드하기. 63 달소 23.05.29.01:57 25798 +25
공지 DSM 7.2v) ARPL-i18n(rr)으로 헤놀로지 부트로더 빌드하기. 73 달소 23.05.23.23:58 27349 +23
나만의 구독 관리하기 Wallos 서버 구축하기.(DSM) 4 달소 2일 전17:30 291 +3
m.2 nvme 단독설치(DSM 및 볼륨)를 위한 nvmesystem addon for mshell 배포. 17 화정큐삼 5일 전21:48 357 +8
nvmesystem addon for mshell 을 테스트 중입니다. 5 화정큐삼 5일 전12:06 179 +6
4943
normal
토바 24.04.08.14:45 202 0
4942
normal
한군77 24.04.07.12:29 266 0
4941
image
유니파트 24.04.07.00:35 349 0
4940
normal
임반장 24.04.06.23:33 188 0
image
모랄로 24.04.06.13:53 209 0
4938
normal
토바 24.04.06.12:42 127 0
4937
normal
모랄로 24.04.06.00:40 121 0
4936
normal
모랄로 24.04.05.09:29 128 0
4935
image
꾀돌이 24.04.04.18:16 262 0
4934
image
그레잇주 24.04.04.10:21 191 0
4933
image
하루오빠 24.04.03.21:43 212 0
4932
image
하루오빠 24.04.03.18:59 173 0
4931
normal
90000 24.04.03.17:45 276 +1
4930
image
하루오빠 24.04.03.16:32 134 0
4929
normal
영석군 24.04.03.14:02 213 0
4928
normal
드림라이너 24.04.02.19:18 271 0
4927
normal
니즛 24.04.02.15:43 394 0
4926
image
kmw_ 24.04.02.14:40 192 0
4925
normal
파스텔하늘 24.04.02.09:57 367 +1
4924
image
짱구바붕 24.04.01.21:02 315 0