mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 20:13:31 +03:00
Fix for GeoIP container not starting when deploying Plausible (#308)
* Update docker-compose-geoip.yml * Update docker-compose-geoip.yml
This commit is contained in:
parent
b930b82752
commit
564015a7fb
@ -36,6 +36,8 @@ services:
|
|||||||
# this requires an account at maxmind.com (https://www.maxmind.com/en/geolite2/signup)
|
# this requires an account at maxmind.com (https://www.maxmind.com/en/geolite2/signup)
|
||||||
geoip:
|
geoip:
|
||||||
image: maxmindinc/geoipupdate
|
image: maxmindinc/geoipupdate
|
||||||
|
ports:
|
||||||
|
- 1080:1080
|
||||||
environment:
|
environment:
|
||||||
- GEOIPUPDATE_ACCOUNT_ID=<your-account-id>
|
- GEOIPUPDATE_ACCOUNT_ID=<your-account-id>
|
||||||
- GEOIPUPDATE_LICENSE_KEY=<your-license-key>
|
- GEOIPUPDATE_LICENSE_KEY=<your-license-key>
|
||||||
@ -53,20 +55,22 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- plausible_db
|
- plausible_db
|
||||||
- plausible_events_db
|
- plausible_events_db
|
||||||
|
- geoip
|
||||||
- fake_smtp
|
- fake_smtp
|
||||||
ports:
|
ports:
|
||||||
- 80:8080
|
- 80:8080
|
||||||
links:
|
links:
|
||||||
- plausible_db
|
- plausible_db
|
||||||
- plausible_events_db
|
- plausible_events_db
|
||||||
|
- geoip
|
||||||
- fake_smtp
|
- fake_smtp
|
||||||
env_file:
|
env_file:
|
||||||
- plausible-variables.sample.env
|
- plausible-variables.sample.env
|
||||||
# only if you use the geioip container
|
# only if you use the geioip container
|
||||||
|
environment:
|
||||||
|
- GEOLITE2_COUNTRY_DB=/geoip/GeoLite2-Country.mmdb
|
||||||
volumes:
|
volumes:
|
||||||
- geoip:/geoip:ro
|
- geoip:/geoip:ro
|
||||||
environment:
|
|
||||||
-
|
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
build:
|
build:
|
||||||
@ -76,9 +80,11 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- plausible_db
|
- plausible_db
|
||||||
- plausible_events_db
|
- plausible_events_db
|
||||||
|
- geoip
|
||||||
links:
|
links:
|
||||||
- plausible_db
|
- plausible_db
|
||||||
- plausible_events_db
|
- plausible_events_db
|
||||||
|
- geoip
|
||||||
env_file:
|
env_file:
|
||||||
- plausible-variables.sample.env
|
- plausible-variables.sample.env
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user