fail2ban/docker-compose.yml

20 lines
427 B
YAML
Raw Normal View History

2019-06-19 20:53:13 +00:00
version: '2'
services:
fail2ban:
build: ./fail2ban
hostname: fail2ban
container_name: fail2ban
restart: always
2019-06-20 11:11:33 +00:00
privileged: true
2019-06-19 20:53:13 +00:00
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
2019-06-19 20:53:13 +00:00
ports:
- 22:22/tcp
2019-06-19 21:04:01 +00:00
- 2222:2222/tcp
2019-07-02 12:40:07 +00:00
network_mode: host