26 lines
466 B
YAML
26 lines
466 B
YAML
|
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
|
||
|
ports:
|
||
|
- 22:22/tcp
|
||
|
networks:
|
||
|
mynet:
|
||
|
ipv4_address: 172.24.0.101
|
||
|
|
||
|
networks:
|
||
|
mynet:
|
||
|
driver: bridge
|
||
|
ipam:
|
||
|
config:
|
||
|
- subnet: 172.24.0.0/24
|