Files
mgmt/docker-compose.yml
Scott Hatlen (CTR) 540a2ab2d9 docker-compose in wsl
2026-03-10 09:43:33 -07:00

39 lines
782 B
YAML

services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: osa-backend
ports:
- "5001:5001"
volumes:
- ./backend:/app
- /app/.venv
environment:
- FLASK_ENV=development
- DATABASE_URL=sqlite:////app/osa.db
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- NODE_IMAGE=node:22-slim
container_name: osa-frontend
ports:
- "8080:5173"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- VITE_API_URL=/api
depends_on:
- backend
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
backend_data:
frontend_data: