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.
|
run: ```docker-compose exec backend python manage.py createsuperuser``` and create a user in the backend.
|
||||||
the frontend runs on http://localhost:5173
|
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"
|
- "5432:5432"
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
build: ./backend
|
build:
|
||||||
volumes:
|
context: git://github.com/your-org/my-project-backend.git#main # Replace with your backend repo URL
|
||||||
- ./backend:/app
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
environment:
|
environment:
|
||||||
|
@ -27,7 +27,9 @@ services:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
build: ./frontend
|
build:
|
||||||
|
context: git://github.com/your-org/my-project-frontend.git#main # Replace with your frontend repo URL
|
||||||
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "5173:5173"
|
- "5173:5173"
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue