Docker Compose for SvelteKit
A SvelteKit application with Node adapter. Fast, modern full-stack framework.
svelte sveltekit frontend fullstack
compose.yaml
services:
web:
build: .
ports:
- target: 3000
mode: ingress
environment:
- NODE_ENV=production
- ORIGIN=https://example.com
healthcheck:
test:
- CMD
- curl
- -f
- http://localhost:3000/
interval: 30s
timeout: 5s
retries: 3
deploy:
resources:
reservations:
cpus: "0.5"
memory: 256M
restart: unless-stopped
Services
- web .