defined compose file for deploy

This commit is contained in:
2024-01-10 09:58:59 +01:00
parent bf99801157
commit bdf81a3c5b
5 changed files with 53 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
# ToDo
* year pagination
* build & deploy via docker
# Authentication
Authentication consists of the following parts:
@@ -16,4 +15,22 @@ Source:
# Multi-User Support
Each location record is marked with a user ID.
All the actions user `withUser` to fetch user ID, which is then used in all the DB operations.
All the actions user `withUser` to fetch user ID, which is then used in all the DB operations.
# Deploying
The deployment is done via Docker:
* build docker image
* deploy Docker service
## Building Docker image
Run the following command:
```bash
docker build . -t utility-bills-tracker:1.2.0
```
The image will be stored in the local Docker instance.
## Deploying Docker service
Run the following command:
```bash
docker stack deploy -c docker-compose-deploy.yml utility-bills-tracker:1.2.0
```