Compare commits

...
3 Commits
Author SHA1 Message Date
marc 5b768c702d simplistic Makefile
CI / build (2.7) (push) Canceled after 0s
CI / build (3.10) (push) Canceled after 0s
CI / build (3.11.0-alpha.1) (push) Canceled after 0s
CI / build (3.5) (push) Canceled after 0s
CI / build (3.6) (push) Canceled after 0s
CI / build (3.7) (push) Canceled after 0s
CI / build (3.8) (push) Canceled after 0s
CI / build (3.9) (push) Canceled after 0s
CI / build (pypy2) (push) Canceled after 0s
CI / build (pypy3) (push) Canceled after 0s
2021-12-24 03:17:05 +01:00
marc 2c48540bde simplictic docker-compose.yml 2021-12-24 03:16:55 +01:00
marc 7692035dab simplistic dockerfile 2021-12-24 03:16:41 +01:00
3 changed files with 26 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
FROM python:3.10-slim
WORKDIR /root
COPY setup.py fail2ban config bin ./
RUN python setup.py install
ENTRYPOINT ["/bin/fail2ban-server"]
+5
View File
@@ -0,0 +1,5 @@
setup:
docker-compose -f docker-compose.yml up --build -d
clean:
docker-compose down
docker image rm fail2ban
+14
View File
@@ -0,0 +1,14 @@
version: "3.9"
services:
fail2ban:
image: fail2ban
restart: unless-stopped
build:
context: .
dockerfile: ./Dockerfile
volumes:
- /var/run/fail2ban/fail2ban.sock # use fail2ban-client outside the container
- /var/log/auth.log:/var/log/auth.log
- ./config:/etc/fail2ban/config
stdin_open: true
tty: true