Initial commit
This commit is contained in:
43
docker-compose.yml
Normal file
43
docker-compose.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
# Backend FastAPI
|
||||
backend:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
container_name: innotexboard-api
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./backend:/app
|
||||
environment:
|
||||
- SECRET_KEY=your-super-secret-key-change-in-production
|
||||
- FRONTEND_URL=http://localhost:3000
|
||||
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
|
||||
networks:
|
||||
- innotexboard
|
||||
depends_on:
|
||||
- frontend
|
||||
|
||||
# Frontend Vue.js
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
container_name: innotexboard-web
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- /app/node_modules
|
||||
environment:
|
||||
- VITE_API_URL=http://localhost:8000/api/v1
|
||||
command: npm run dev
|
||||
networks:
|
||||
- innotexboard
|
||||
|
||||
networks:
|
||||
innotexboard:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user