From 18e4d42e8e05b2cd2fe4461c9db5f65ff51909b9 Mon Sep 17 00:00:00 2001 From: MathieuHa Date: Mon, 3 Oct 2022 00:10:31 +0200 Subject: [PATCH] Update readme, add makefile operations --- Makefile | 11 ++++++++++- README.md | 7 +++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 04f6f05..de8a8e7 100644 --- a/Makefile +++ b/Makefile @@ -17,4 +17,13 @@ vendor: go mod vendor clean: - rm -rf ./vendor \ No newline at end of file + rm -rf ./vendor + +run_dev: + docker-compose -f docker-compose.dev.yml up -d --remove-orphans + +run_local: + docker-compose -f docker-compose.local.yml up -d --remove-orphans + +run: + docker-compose -f docker-compose.yml up -d --remove-orphans \ No newline at end of file diff --git a/README.md b/README.md index f6753cc..93474b9 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,13 @@ The recommanded mode for performance is the streaming mode, decisions are update ## Usage +To get started, use the `docker-compose.yml` file. + +You can run it with: +```bash +make run +``` + ### Note Each middleware in traefik has it's own data and is instanciated by service. This means if there are 10 services protected by the bouncer in streaming alone or live mode, the cache will be duplicated to all 10 services.