- named volume 대신 호스트 경로 바인드 마운트 사용 (DB_DATA_DIR, 기본 /data/postgres) - backend: DB 연결/동기화 실패 시 프로세스 종료 - restart: always가 DB 준비까지 재시도하도록 fail-fast 적용 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+2
-5
@@ -10,7 +10,7 @@ services:
|
||||
expose:
|
||||
- "5432"
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
- ${DB_DATA_DIR:-/data/postgres}:/var/lib/postgresql/data
|
||||
networks:
|
||||
- app-network
|
||||
healthcheck:
|
||||
@@ -63,7 +63,4 @@ networks:
|
||||
driver: bridge
|
||||
# npm(Nginx Proxy Manager)이 컨테이너 이름으로 라우팅하는 공용 네트워크
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
external: true
|
||||
Reference in New Issue
Block a user