build(deployment): use local backend and frontend build contexts
This commit is contained in:
25
README.md
25
README.md
@@ -2,29 +2,32 @@
|
||||
|
||||
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`
|
||||
Docker builds read from the local `./backend` and `./frontend` directories inside this repository.
|
||||
Those directories are expected to contain the backend and frontend application source before you build for deployment.
|
||||
|
||||
## Local structure
|
||||
|
||||
The expected directory layout is:
|
||||
The expected deployment layout is:
|
||||
|
||||
```text
|
||||
Qlockify/
|
||||
qlockify-backend/
|
||||
qlockify-frontend/
|
||||
qlockify-deployment/
|
||||
qlockify-deployment/
|
||||
backend/
|
||||
frontend/
|
||||
nginx/
|
||||
postgres/
|
||||
docker-compose.yml
|
||||
```
|
||||
|
||||
## Deployment flow
|
||||
|
||||
1. Configure deployment env files:
|
||||
1. Put your application source into:
|
||||
- `./backend`
|
||||
- `./frontend`
|
||||
2. Configure deployment env files:
|
||||
- `./.env`
|
||||
- `./backend/.env`
|
||||
- `./frontend/.env`
|
||||
2. From `qlockify-deployment`, build and start the stack:
|
||||
3. From `qlockify-deployment`, build and start the stack:
|
||||
|
||||
```powershell
|
||||
docker compose up --build
|
||||
|
||||
Reference in New Issue
Block a user