This commit is contained in:
zwnk 2025-01-16 21:05:18 -03:00
parent bec9378542
commit f8091d2d66
2 changed files with 0 additions and 49 deletions

View file

@ -1,8 +0,0 @@
services:
backend:
volumes:
- /path/to/local/backend:/app
frontend:
volumes:
- /path/to/local/frontend:/app

View file

@ -1,41 +0,0 @@
services:
db:
image: postgres:13
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=todo_db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
backend:
build:
context: ssh://git@git.impstyle.com:222/test/demo-backend.git#main # Replace with your backend repo URL
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- DB_NAME=todo_db
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_HOST=db
- DB_PORT=5432
- DEBUG=1
depends_on:
- db
frontend:
build:
context: ssh://git@git.impstyle.com:222/test/demo-frontend.git#main # Replace with your frontend repo URL
dockerfile: Dockerfile
ports:
- "5173:5173"
environment:
- VITE_API_URL=http://localhost:8000/api
depends_on:
- backend
volumes:
postgres_data: