Pin the app bridge to the pre-rename network name and add DNS aliases pinscope / periscope-frontend so the host proxy can reach the stack again.
66 lines
1.4 KiB
YAML
66 lines
1.4 KiB
YAML
# Canonical compose project on the VPS is "periscope" (not the GitHub
|
|
# clone folder name "pinscope"). Bind mounts stay relative to the checkout.
|
|
# Keep the Docker network name pinscope_periscope so host Caddy/nginx that
|
|
# joined the pre-rename network can still reach these containers by DNS.
|
|
name: periscope
|
|
|
|
services:
|
|
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: backend/Dockerfile
|
|
|
|
container_name: periscope-backend
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
- .env
|
|
|
|
environment:
|
|
DEEPSEEK_API_KEY: ${DEEPSEEK_API_KEY}
|
|
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
|
|
GEMINI_API_KEY: ${GEMINI_API_KEY:-}
|
|
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./taxonomy:/app/taxonomy
|
|
|
|
ports:
|
|
- "8080:8080"
|
|
|
|
networks:
|
|
periscope:
|
|
aliases:
|
|
- periscope-backend
|
|
- pinscope-backend
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: dockerfile
|
|
args:
|
|
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:8080}
|
|
NEXT_PUBLIC_AUTH_MODE: ${NEXT_PUBLIC_AUTH_MODE:-}
|
|
|
|
container_name: periscope-frontend
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
- backend
|
|
|
|
ports:
|
|
- "3000:3000"
|
|
|
|
networks:
|
|
periscope:
|
|
aliases:
|
|
- periscope-frontend
|
|
- pinscope
|
|
- pinscope-frontend
|
|
|
|
networks:
|
|
periscope:
|
|
name: pinscope_periscope
|
|
driver: bridge
|