first upload

This commit is contained in:
2026-01-16 12:48:44 -05:00
parent b7a13e9c39
commit f83d672d28
12 changed files with 1941 additions and 0 deletions

25
docker-compose.yml Normal file
View File

@@ -0,0 +1,25 @@
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "${BACKEND_PORT}:8000"
volumes:
- ./backend/app:/app/app
- ./data:/app/data
environment:
- DATABASE_URL=sqlite:///./data/drugs.db
command: uvicorn app.main:app --host ${BACKEND_HOST} --port 8000 --reload
frontend:
image: nginx:alpine
ports:
- "${FRONTEND_PORT}:80"
volumes:
- ./frontend:/usr/share/nginx/html:ro
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- backend