Add geoip database for plausible
This commit is contained in:
parent
47ad40bb52
commit
8932ac828f
2 changed files with 28 additions and 0 deletions
|
@ -8,6 +8,9 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- clickhouse
|
- clickhouse
|
||||||
|
- geoip
|
||||||
|
volumes:
|
||||||
|
- ./geoip:/mnt/geoip:ro
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.plausible.rule=Host(`plausible.theorangeone.net`)
|
- traefik.http.routers.plausible.rule=Host(`plausible.theorangeone.net`)
|
||||||
|
@ -22,6 +25,7 @@ services:
|
||||||
- DISABLE_SUBSCRIPTION=true
|
- DISABLE_SUBSCRIPTION=true
|
||||||
- CLICKHOUSE_DATABASE_URL=http://clickhouse:8123/plausible
|
- CLICKHOUSE_DATABASE_URL=http://clickhouse:8123/plausible
|
||||||
- BASE_URL=https://plausible.theorangeone.net
|
- BASE_URL=https://plausible.theorangeone.net
|
||||||
|
- GEOLITE2_COUNTRY_DB=/mnt/geoip/GeoLite2-Country.mmdb
|
||||||
|
|
||||||
clickhouse:
|
clickhouse:
|
||||||
image: yandex/clickhouse-server:latest
|
image: yandex/clickhouse-server:latest
|
||||||
|
@ -45,3 +49,13 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=plausible
|
- POSTGRES_PASSWORD=plausible
|
||||||
- POSTGRES_USER=plausible
|
- POSTGRES_USER=plausible
|
||||||
|
|
||||||
|
geoip:
|
||||||
|
image: maxmindinc/geoipupdate:latest
|
||||||
|
environment:
|
||||||
|
- GEOIPUPDATE_FREQUENCY=168
|
||||||
|
- GEOIPUPDATE_EDITION_IDS=GeoLite2-Country
|
||||||
|
- GEOIPUPDATE_ACCOUNT_ID={{ geoip_account_id }}
|
||||||
|
- GEOIPUPDATE_LICENSE_KEY={{ geoip_license_key }}
|
||||||
|
volumes:
|
||||||
|
- ./geoip:/usr/share/GeoIP
|
||||||
|
|
|
@ -19,3 +19,17 @@ signing_salt: !vault |
|
||||||
3763326533373266620a376230613664633332663065393561656565653634366130323534633865
|
3763326533373266620a376230613664633332663065393561656565653634366130323534633865
|
||||||
35336236653664373131343364373637653261303030663239333534653432386438343162393866
|
35336236653664373131343364373637653261303030663239333534653432386438343162393866
|
||||||
3563353137633338623239346538643662393537313932386366
|
3563353137633338623239346538643662393537313932386366
|
||||||
|
geoip_account_id: !vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
64376562666666383033373334653261636565343366663131656438313538666331313839326439
|
||||||
|
6163343962323965383334303535643364373165356632630a353234306238373165363064363661
|
||||||
|
64626466356135623438376462313139656532363331386166353937303762353139663833653765
|
||||||
|
3733666162356363620a323936663362326530353964343466386263636332326538363238313062
|
||||||
|
3363
|
||||||
|
geoip_license_key: !vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
37653531376537336537353736323833346535386333633562336237643136306165613861373861
|
||||||
|
3334656335356637396563323932346436316564326264340a313363646536396164366231663030
|
||||||
|
65383331353864313732646133323966663161346664376461646466613961663136356432396235
|
||||||
|
6639626230313461390a666530343730626263333430323866393466643330613432363366393737
|
||||||
|
64373531663563303465636232663131633232306539366533363333303933646462
|
||||||
|
|
Loading…
Reference in a new issue