services: web: build: . image: dbx-main:latest container_name: dbx-main restart: unless-stopped ports: # NPM이 192.168.0.194:8080 으로 프록시 → 컨테이너 8000으로 전달 - "8080:8000" env_file: - .env environment: # 사용자/권한 JSON 저장소 + 첨부 업로드 — 볼륨에 영구 보관 DATA_DIR: /data volumes: - dbx-main-data:/data networks: - default - postgres_default # postgres-db 컨테이너와 통신 (DSN host=postgres-db) volumes: dbx-main-data: networks: # main_default — compose 자동 생성, 동일 프로젝트 내부 통신용 default: # postgres_default — postgres-db 가 속한 외부 네트워크 (별도 compose 가 만듦) postgres_default: external: true