Initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
backend:
|
||||
image: python:3.11-slim
|
||||
working_dir: /app
|
||||
volumes:
|
||||
- ./main.py:/app/main.py:ro
|
||||
- ./data:/data:ro
|
||||
command: >
|
||||
sh -c "pip install --quiet fastapi uvicorn pandas python-multipart &&
|
||||
uvicorn main:app --host 0.0.0.0 --port 8000"
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- "8070:80"
|
||||
volumes:
|
||||
- ./index.html:/usr/share/nginx/html/index.html:ro
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
depends_on:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user