Files
my-protfolio/compose.yaml

25 lines
710 B
YAML

name: portfolio
services:
portfolio-app:
image: ${PORTFOLIO_IMAGE:-portfolio:local}
build:
context: .
target: runtime
args:
NPM_REGISTRY: ${NPM_REGISTRY:-https://registry.npmjs.org/}
restart: unless-stopped
ports:
- "${BIND_ADDRESS:-127.0.0.1}:${PORT:-3000}:3000"
environment:
SITE_URL: ${SITE_URL:-http://localhost:3000}
DATA_DIR: /data
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET:-}
volumes:
- portfolio-data:/data
- next-image-cache:/app/.next/cache
volumes:
portfolio-data:
name: ${PORTFOLIO_DATA_VOLUME:-portfolio_portfolio-data}
next-image-cache:
name: ${PORTFOLIO_CACHE_VOLUME:-portfolio_next-image-cache}