Merge the two container functions into one container

master
Meliurwen 4 years ago
parent 18c632b981
commit 9083a5c648
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 24
      docker-compose.yml

@ -1,36 +1,18 @@
version: "3.2"
services:
fail2ban-input:
fail2ban:
image: crazymax/fail2ban:${F2BI_TAG:-latest}
container_name: ${F2BI_CONTAINER_NAME:-fail2ban-input}
container_name: ${F2BI_CONTAINER_NAME:-fail2ban}
restart: ${SRV_RESTART:-unless-stopped}
network_mode: "host"
cap_add:
- NET_ADMIN
- NET_RAW
volumes:
- ${LOCAL_STACK_DIR}/data-input:/data
- ${LOCAL_STACK_DIR}/data:/data
- /var/log:/var/log:ro
env_file:
- "./fail2ban.env"
environment:
- TZ=${TZ}
- F2B_IPTABLES_CHAIN=INPUT
fail2ban-docker:
image: crazymax/fail2ban:${F2BD_TAG:-latest}
container_name: ${F2BD_CONTAINER_NAME:-fail2ban-docker}
restart: ${SRV_RESTART:-unless-stopped}
network_mode: "host"
cap_add:
- NET_ADMIN
- NET_RAW
volumes:
- ${LOCAL_STACK_DIR}/data-docker:/data
- /var/log:/var/log:ro
env_file:
- "./fail2ban.env"
environment:
- TZ=${TZ}
- F2B_IPTABLES_CHAIN=DOCKER-USER

Loading…
Cancel
Save