diff --git a/README.md b/README.md index bbfbffd..7b29066 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/docker-compose.yml b/docker-compose.yml index 9a9f6b6..98aa1cb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: