fail2ban/docker-compose.yml

28 lines
559 B
YAML
Raw Permalink Normal View History

2019-06-19 20:53:13 +00:00
version: '2'
services:
fail2ban:
build: ./fail2ban
2021-02-02 00:13:19 +00:00
image: fail2ban
2019-06-19 20:53:13 +00:00
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
2021-02-02 00:13:19 +00:00
- ./fail2ban/fail2ban.log:/var/log/fail2ban.log
2020-08-22 14:58:52 +00:00
cap_add:
- NET_ADMIN
- NET_RAW
2021-02-02 00:13:19 +00:00
ports:
- "22:22/tcp"
- "2222:2222/tcp"
networks:
failnet:
networks:
failnet: