first backend frontend split

with docker compose file
nextjs something something
also includes migrations
This commit is contained in:
2025-06-20 14:06:00 +02:00
parent e7cc031588
commit dfc242084e
138 changed files with 1592 additions and 13 deletions
+26
View File
@@ -0,0 +1,26 @@
services:
backend:
image: python:3.13
working_dir: /app/backend
volumes:
- ./backend:/app/backend
command: sh -c "pip install -r requirements.txt && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
ports:
- "8001:8000"
networks:
- app_network
frontend:
image: node:20
working_dir: /app/frontend
volumes:
- ./frontend:/app/frontend
command: sh -c "npm install && npm run dev"
ports:
- "3001:3000"
networks:
- app_network
networks:
app_network:
driver: bridge