-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.example.yml
33 lines (32 loc) · 1.26 KB
/
docker-compose.example.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
#Ensure below lines are added to your Traefik service to enable file providers
#
# volumes:
# - /path/to/provider/directory:/rules
# command:
# - --providers.file.directory=/rules
# - --providers.file.watch=true
#
# Then to apply the middleware to a service, add the middleware with "middlewareName@file" like below.
#
# labels:
# - "traefik.http.routers.routerName.middlewares=middlewares-geo-ipwhitelist@file"
services:
geoipwhitelist:
image: mpdcampbell/traefik-geo-ipwhitelist
container_name: geoipwhitelist
volumes:
- /path/to/provider/directory:/rules
#Optional: If you want the Geolite2 databases to persist
#- /path/to/local/directory:/geoip
environment:
- MAXMIND_KEY="yourKeyhere"
#Use ISO 3166-1 or 3166-2 codes (recommended), or place names with spaces replaced by dashes.
- COUNTRY_CODES=FR New-Zealand
- SUB_CODES=VN-43 West-Virginia:Dallas
#Optional: Overwrites the default cron schedule
#- CRON_EXPRESSION=5 1 * * MON-FRI
#Optional: Sets timezone used for cron, default UTC
#- TZ
#Optional: Rename middleware and filename, for running multiple instances of container
#- MIDDLEWARE_FILENAME
#- MIDDLEWARE_NAME