homepage/docker-compose.yml
Vadym Samoilenko be5e2a5e7c Deploy: add basePath support and server docker-compose
- next.config.js: basePath from NEXT_PUBLIC_BASE_PATH env var (build arg)
- docker-compose.yml: builds with /homepage base path, exposes :3001 locally, mounts config dir and Docker socket
- deploy.sh: clone/pull + build + start script for optical-dev server

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 12:27:45 +01:00

18 lines
472 B
YAML

services:
app:
build:
context: .
args:
NEXT_PUBLIC_BASE_PATH: /homepage
ports:
- "127.0.0.1:3001:3000"
volumes:
- ./config:/app/config
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/api/healthcheck || exit 1"]
interval: 10s
timeout: 3s
start_period: 30s
retries: 3