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:
|
|
|
|
- ./fail2ban/entrypoint.sh:/etc/fail2ban/entrypoint.sh
|
2019-06-19 21:04:01 +00:00
|
|
|
- ./fail2ban/sshd_config:/etc/ssh/sshd_config
|
2019-06-19 20:53:13 +00:00
|
|
|
ports:
|
|
|
|
- 22:22/tcp
|
2019-06-19 21:04:01 +00:00
|
|
|
- 2222:2222/tcp
|
2019-06-19 20:53:13 +00:00
|
|
|
networks:
|
|
|
|
mynet:
|
|
|
|
ipv4_address: 172.24.0.101
|
|
|
|
|
|
|
|
networks:
|
|
|
|
mynet:
|
|
|
|
driver: bridge
|
|
|
|
ipam:
|
|
|
|
config:
|
|
|
|
- subnet: 172.24.0.0/24
|