-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (51 loc) · 1.1 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: "3.8"
services:
api:
build: .
restart: always
depends_on:
- redis
environment:
- WEB_CONCURRENCY=${WEB_CONCURRENCY}
- FORWARDED_ALLOW_IPS=172.16.23.1
- REDIS_URL=redis://redis:6379/
- DEFAULT_LOCALE=${DEFAULT_LOCALE}
- INCLUDE_ASN=${INCLUDE_ASN}
ports:
- 8069:8069/tcp
volumes:
- ./data:/usr/share/GeoIP
networks:
default:
ipv4_address: 172.16.23.2
aliases:
- api
redis:
image: redis:6.0.7-alpine
restart: always
networks:
default:
ipv4_address: 172.16.23.3
aliases:
- redis
update:
image: tkrs/maxmind-geoipupdate:latest
restart: always
environment:
- ACCOUNT_ID=${ACCOUNT_ID}
- LICENSE_KEY=${LICENSE_KEY}
- EDITION_IDS=GeoLite2-ASN GeoLite2-City GeoLite2-Country
volumes:
- ./data:/usr/share/GeoIP
networks:
default:
ipv4_address: 172.16.23.4
aliases:
- update
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.23.0/24