2019-06-19 20:53:13 +00:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
fail2ban:
|
|
|
|
build: ./fail2ban
|
|
|
|
hostname: fail2ban
|
|
|
|
container_name: fail2ban
|
|
|
|
restart: always
|
|
|
|
entrypoint:
|
|
|
|
- /bin/bash
|
|
|
|
- /etc/fail2ban/entrypoint.sh
|
|
|
|
volumes:
|
2019-06-20 09:51:08 +00:00
|
|
|
- ./fail2ban/entrypoint.sh:/etc/fail2ban/entrypoint.sh:ro
|
|
|
|
- ./fail2ban/sshd_config:/etc/ssh/sshd_config:ro
|
2020-08-22 14:58:52 +00:00
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- NET_RAW
|
2019-07-02 12:40:07 +00:00
|
|
|
network_mode: host
|