From 8996a9a730f8e5746388eff74ace62caaeb5b9f4 Mon Sep 17 00:00:00 2001 From: zwnk Date: Thu, 16 Jan 2025 20:28:52 -0300 Subject: [PATCH] fucking arround with docker compose ... --- README.md | 3 ++- docker-compose.yml | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) 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: