fucking arround with docker compose ...

This commit is contained in:
zwnk 2025-01-16 20:28:52 -03:00
parent 22e7ac2a97
commit 8996a9a730
2 changed files with 8 additions and 3 deletions

View file

@ -12,7 +12,8 @@ Clone the 3 repos into the folder:
* ```git clone ssh://git@git.impstyle.com:222/test/demo-docker.git docker```
* ```git clone ssh://git@git.impstyle.com:222/test/demo-fronted.git frontend```
* ```git clone ssh://git@git.impstyle.com:222/test/demo-backend.git backend```
git submodule add git@git.impstyle.com:222/test/demo-frontend.git frontend
git submodule add git@git.impstyle.com:222/test/demo-backend.git backend
## SSH git clone via docker compose
Have a valid ssh key pair with the Git server provider.

View file

@ -12,8 +12,10 @@ services:
backend:
build:
context: ./backend
context: ../backend/
dockerfile: Dockerfile
# entrypoint: ["${PWD}/../backend/entrypoint.sh"]
command: sh -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
ports:
- "8000:8000"
environment:
@ -28,8 +30,10 @@ services:
frontend:
build:
context: ./frontend
context: ../frontend
dockerfile: Dockerfile
# entrypoint: ["${PWD}/../frontend/entrypoint.sh"]
command: sh -c "npm run dev -- --host 0.0.0.0"
ports:
- "5173:5173"
environment: