24 lines
463 B
YAML
24 lines
463 B
YAML
version: '2'
|
|
|
|
services:
|
|
fail2ban:
|
|
build: ./fail2ban
|
|
hostname: fail2ban
|
|
container_name: fail2ban
|
|
restart: always
|
|
privileged: true
|
|
entrypoint:
|
|
- /bin/bash
|
|
- /etc/fail2ban/entrypoint.sh
|
|
volumes:
|
|
- ./fail2ban/entrypoint.sh:/etc/fail2ban/entrypoint.sh:ro
|
|
- ./fail2ban/sshd_config:/etc/ssh/sshd_config:ro
|
|
ports:
|
|
- 22:22/tcp
|
|
- 2222:2222/tcp
|
|
networks:
|
|
failnet:
|
|
|
|
networks:
|
|
failnet:
|