deploy: compose.yaml, container_name, .env 적용 안내

Made-with: Cursor
This commit is contained in:
2026-04-13 14:18:37 +09:00
parent 3058f6a976
commit 58a64a14c2
8 changed files with 23 additions and 12 deletions

31
docker-compose.yaml Normal file
View File

@@ -0,0 +1,31 @@
# 호스트 포트는 다른 스택과 겹치지 않게 4만 번대로 둔다. 충돌 시 아래 두 줄만 바꾼다.
# 웹(nginx 정적): 호스트 42881 -> 컨테이너 80
# PocketBase: 호스트 42917 -> 컨테이너 8090
services:
pocketbase:
image: ghcr.io/muchobien/pocketbase:latest
container_name: todo-pocketbase
restart: unless-stopped
environment:
PB_HOST: 0.0.0.0
PB_PORT: 8090
ports:
- "42917:8090"
volumes:
- pocketbase_data:/pb_data
todo-web:
build:
context: .
args:
VITE_POCKETBASE_URL: ${VITE_POCKETBASE_URL:-http://127.0.0.1:42917}
VITE_PUBLIC_APP_URL: ${VITE_PUBLIC_APP_URL:-}
container_name: todo-web
restart: unless-stopped
ports:
- "42881:80"
depends_on:
- pocketbase
volumes:
pocketbase_data: