Make sure to install the dependencies:
bun install
Start the development server on http://localhost:3000
:
bun run dev
Example 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: 3000
Just use the Dockerfile
:)
Build the application for production:
bun run build
Run production build:
bun .output/server/index.mjs