linktree/compose.yml
2025-06-16 13:37:14 +02:00

26 lines
476 B
YAML

version: '3.8'
services:
preact-linktree:
build: .
ports:
- "8080:8080"
volumes:
- ./links:/app/links:ro
environment:
- NODE_ENV=production
restart: unless-stopped
# Optional: nginx proxy for production
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- preact-linktree
restart: unless-stopped
profiles:
- production