30 lines
773 B
YAML
30 lines
773 B
YAML
# 호스트 포트는 다른 스택과 겹치지 않게 4만 번대로 둔다. 충돌 시 아래 두 줄만 바꾼다.
|
|
# 웹(nginx 정적): 호스트 42881 -> 컨테이너 80
|
|
# PocketBase: 호스트 42917 -> 컨테이너 8090
|
|
services:
|
|
pocketbase:
|
|
image: ghcr.io/muchobien/pocketbase:latest
|
|
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:-}
|
|
restart: unless-stopped
|
|
ports:
|
|
- "42881:80"
|
|
depends_on:
|
|
- pocketbase
|
|
|
|
volumes:
|
|
pocketbase_data:
|