29 lines
744 B
YAML
29 lines
744 B
YAML
|
|
version: '3.8'
|
||
|
|
|
||
|
|
services:
|
||
|
|
server:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: server/Dockerfile
|
||
|
|
volumes:
|
||
|
|
- ./:/app:cached
|
||
|
|
- ./cloud:/opt/tracestudio/cloud:rw
|
||
|
|
working_dir: /app/server
|
||
|
|
command: ["/bin/sh", "-c", "pip install -r /app/server/requirements.txt && python -m uvicorn main:app --host 0.0.0.0 --port 8000 --reload"]
|
||
|
|
ports:
|
||
|
|
- "8000:8000"
|
||
|
|
environment:
|
||
|
|
- PYTHONUNBUFFERED=1
|
||
|
|
|
||
|
|
web:
|
||
|
|
build:
|
||
|
|
context: ./web
|
||
|
|
dockerfile: Dockerfile
|
||
|
|
volumes:
|
||
|
|
- ./web:/app/web:cached
|
||
|
|
- ./web/node_modules:/app/web/node_modules
|
||
|
|
working_dir: /app/web
|
||
|
|
command: ["/bin/sh", "-c", "npm install --no-audit --no-fund && npm run dev -- --host 0.0.0.0"]
|
||
|
|
ports:
|
||
|
|
- "5173:5173"
|