build(deployment): use sibling repos as docker build context

This commit is contained in:
2026-04-23 19:50:44 +03:30
parent ed47645fef
commit 3b052aeca4
7 changed files with 81 additions and 46 deletions

33
README.md Normal file
View File

@@ -0,0 +1,33 @@
# Qlockify Deployment
This repository is the deployment layer only.
It does not contain application source copies. Docker builds read directly from the sibling repositories:
- `../qlockify-backend`
- `../qlockify-frontend`
## Local structure
The expected directory layout is:
```text
Qlockify/
qlockify-backend/
qlockify-frontend/
qlockify-deployment/
```
## Deployment flow
1. Configure deployment env files:
- `./.env`
- `./backend/.env`
- `./frontend/.env`
2. From `qlockify-deployment`, build and start the stack:
```powershell
docker compose up --build
```
The backend container runs database migrations and `collectstatic` on startup, then serves Django with Gunicorn using `config.wsgi:application`.