deploy: compose.yaml, container_name, .env 적용 안내
Made-with: Cursor
This commit is contained in:
31
docker-compose.yaml
Normal file
31
docker-compose.yaml
Normal 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:
|
||||
Reference in New Issue
Block a user