fucking arround with docker compose ...
This commit is contained in:
parent
22e7ac2a97
commit
8996a9a730
2 changed files with 8 additions and 3 deletions
|
@ -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-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-fronted.git frontend```
|
||||||
* ```git clone ssh://git@git.impstyle.com:222/test/demo-backend.git backend```
|
* ```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
|
## SSH git clone via docker compose
|
||||||
Have a valid ssh key pair with the Git server provider.
|
Have a valid ssh key pair with the Git server provider.
|
||||||
|
|
|
@ -12,8 +12,10 @@ services:
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
build:
|
build:
|
||||||
context: ./backend
|
context: ../backend/
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
# entrypoint: ["${PWD}/../backend/entrypoint.sh"]
|
||||||
|
command: sh -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
environment:
|
environment:
|
||||||
|
@ -28,8 +30,10 @@ services:
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
build:
|
build:
|
||||||
context: ./frontend
|
context: ../frontend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
# entrypoint: ["${PWD}/../frontend/entrypoint.sh"]
|
||||||
|
command: sh -c "npm run dev -- --host 0.0.0.0"
|
||||||
ports:
|
ports:
|
||||||
- "5173:5173"
|
- "5173:5173"
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue