Make sure to install the dependencies:
bun installStart the development server on http://localhost:3000:
bun run devExample docker-compose.override.yml with traefik:
services:
bun:
labels:
traefik.enable: true
traefik.http.routers.bun.rule: Host(`bun.localhost`)
traefik.http.routers.bun.entrypoints: web,websecure
traefik.http.services.bun.loadbalancer.server.port: 3000Example docker-compose.override.yml with local development:
services:
bun:
build:
target: local
ports:
- 3000:3000
volumes:
- .:/appJust use the Dockerfile :)
Build the application for production:
bun run buildRun production build:
bun .output/server/index.mjs