add docker compose for local development

This commit is contained in:
Mohamad Tahir 2023-10-30 13:51:48 +03:00
parent 3f807c236f
commit 149616a5ad
Signed by: MohamadTahir
GPG Key ID: 116FAB02D35512FA

16
docker-compose.yaml Normal file
View File

@ -0,0 +1,16 @@
version: '3'
services:
reverse-proxy:
image: traefik:v3.0
command:
- --api.insecure=true
- --providers.docker
- "--experimental.localPlugins.usersblocker.moduleName=github.com/ditkrg/traefik-users-blocker-plugin"
ports:
- "80:80"
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- ./:/plugins-local/src/github.com/ditkrg/traefik-users-blocker-plugin