-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
35 lines (35 loc) · 1.23 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: '3.8'
services:
geoipupdate:
image: maxmindinc/geoipupdate:v4
container_name: geoipupdate
restart: always
environment:
- GEOIPUPDATE_ACCOUNT_ID=${GEOIPUPDATE_ACCOUNT_ID}
- GEOIPUPDATE_LICENSE_KEY=${GEOIPUPDATE_LICENSE_KEY}
- GEOIPUPDATE_EDITION_IDS=GeoLite2-ASN GeoLite2-City GeoLite2-Country
- GEOIPUPDATE_FREQUENCY=24 # hours
volumes:
- /usr/share/GeoIP:/usr/share/GeoIP # MMDB directory
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
ip_analyzer:
image: ecmchow/ip-analyzer:latest
container_name: ip_analyzer
restart: always
volumes:
- /usr/share/GeoIP:/usr/share/GeoIP # MMDB directory
- /path/to/your/.env.service:/var/www/ip-analyzer/.env # service env file
# - /path/to/blacklist:/var/www/ip-analyzer/blacklist # directory for storing IPsum txt (optional)
# - /path/to/mmdb:/var/www/ip-analyzer/mmdb # directory for storing fallback MMDB (optional)
ports:
- "3000:3000"
# - "6379:6379" # Redis port (optional)
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"