dc.yml adjusted
This commit is contained in:
parent
7280712211
commit
eb47d330c8
3 changed files with 18 additions and 4 deletions
|
@ -9,3 +9,7 @@ run: ```docker compose up --build```
|
|||
run: ```docker-compose exec backend python manage.py createsuperuser``` and create a user in the backend.
|
||||
the frontend runs on http://localhost:5173
|
||||
|
||||
|
||||
local dev:
|
||||
enables live updates of the code during development, no rebuild needed:
|
||||
```docker-compose -f docker-compose.yml -f docker-compose.override.yml up```
|
||||
|
|
8
docker-compose.override.yml
Normal file
8
docker-compose.override.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
services:
|
||||
backend:
|
||||
volumes:
|
||||
- /path/to/local/backend:/app
|
||||
|
||||
frontend:
|
||||
volumes:
|
||||
- /path/to/local/frontend:/app
|
|
@ -11,9 +11,9 @@ services:
|
|||
- "5432:5432"
|
||||
|
||||
backend:
|
||||
build: ./backend
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
build:
|
||||
context: git://github.com/your-org/my-project-backend.git#main # Replace with your backend repo URL
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
|
@ -27,7 +27,9 @@ services:
|
|||
- db
|
||||
|
||||
frontend:
|
||||
build: ./frontend
|
||||
build:
|
||||
context: git://github.com/your-org/my-project-frontend.git#main # Replace with your frontend repo URL
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "5173:5173"
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue