You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
574 B
YAML

services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
ports:
- "3000:3000"
environment:
DATABASE_URL: "sqlite:/data/knowfoolery.db?mode=rwc"
PORT: "3000"
JWT_SECRET: "dev-secret-change-me"
RUST_LOG: "knowfoolery_server=debug,tower_http=debug"
volumes:
- db-data:/data
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
ports:
- "5173:5173"
environment:
VITE_BACKEND_URL: "http://backend:3000"
depends_on:
- backend
volumes:
db-data: