23 lines
529 B
YAML
23 lines
529 B
YAML
services:
|
|
discord-bot-fail2ban:
|
|
build: .
|
|
container_name: discord-bot-fail2ban
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
volumes:
|
|
# 호스트의 fail2ban 소켓에 접근
|
|
- /var/run/fail2ban:/var/run/fail2ban:ro
|
|
ports:
|
|
# 호스트 fail2ban 스크립트 접근용 (localhost만)
|
|
- "127.0.0.1:5000:5000"
|
|
networks:
|
|
- bot
|
|
labels:
|
|
- "com.centurylinklabs.watchtower.enable=false"
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
bot:
|
|
external: true
|