Skip to content

Commit

Permalink
Add Træfik check
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweak committed Aug 18, 2021
1 parent 942489c commit dec71ed
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
9 changes: 5 additions & 4 deletions plugins/traefik/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ SOUIN=vendor/github.com/darkweak/souin
CACHE=$(SOUIN)/cache

prepare: ## Prepare tyk plugin
go mod tidy && \
go mod download && \
go mod vendor && \
$(MAKE) replace && \
go mod tidy
go mod download
go mod vendor
$(MAKE) replace
cp docker-compose.yml.test docker-compose.yml
docker-compose up -d

copy-to: ## Copy from to
Expand Down
19 changes: 19 additions & 0 deletions plugins/traefik/docker-compose.yml.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: '3.4'

services:
traefik:
image: traefik/traefik:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ../..:/plugins-local/src/github.com/darkweak/souin
- ./traefik.yml:/traefik.yml
- ./souin-configuration.yaml:/souin-configuration.yaml
environment:
GOPATH: /plugins-local
ports:
- 80:80

whoami:
image: traefik/whoami
labels:
- traefik.http.routers.whoami.rule=Host(`domain.com`)

0 comments on commit dec71ed

Please sign in to comment.