mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 09:33:19 +03:00
b29afdeb92
* added maxmindinc/geoipupdate container to automatically setup a geoip database * added a note for geoip database in HOSTING.md * Fix pluralisation in 'current visitors' (#253) Closes #239. * added maxmindinc/geoipupdate container to automatically setup a geoip database * added a note for geoip database in HOSTING.md * created docker-compose-geoip.yml for setup with geoip updated HOSTING.md accordingly * Revert "added maxmindinc/geoipupdate container to automatically setup a geoip database" This reverts commitb023ba8b
* added maxmindinc/geoipupdate container to automatically setup a geoip database * added a note for geoip database in HOSTING.md * added maxmindinc/geoipupdate container to automatically setup a geoip database * created docker-compose-geoip.yml for setup with geoip updated HOSTING.md accordingly * Revert "added maxmindinc/geoipupdate container to automatically setup a geoip database" This reverts commitb023ba8b
* added maxmindinc/geoipupdate container to automatically setup a geoip database * Revert "added maxmindinc/geoipupdate container to automatically setup a geoip database" This reverts commitb023ba8b
Co-authored-by: Michael (a.k.a. Resynth) <resynth1943@tutanota.com>
77 lines
1.8 KiB
YAML
77 lines
1.8 KiB
YAML
# NOTE:
|
|
# This Docker-compose file is created as a sample and should not be used directly for production
|
|
# You can adjust the settings as-per your environment
|
|
version: "3.3"
|
|
services:
|
|
|
|
# As it says, this service is a fake smtp server which accepts SMTP connections
|
|
# the inbox is available at localhost:8025, in actuality, you need to use a proper smtp server
|
|
fake_smtp:
|
|
image: mailhog/mailhog:v1.0.0
|
|
ports:
|
|
- 1025:1025
|
|
- 8025:8025
|
|
healthcheck:
|
|
test: echo | telnet 127.0.0.1 1025
|
|
|
|
|
|
plausible_db:
|
|
image: postgres:12
|
|
command: ["postgres", "-c", "log_statement=all", "-c", "log_destination=stderr"]
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_DB=plausible_db
|
|
- POSTGRES_USER=postgres
|
|
ports:
|
|
- 5432:5432
|
|
|
|
plausible_events_db:
|
|
image: yandex/clickhouse-server:latest
|
|
volumes:
|
|
- event-data:/var/lib/clickhouse
|
|
ports:
|
|
- 8123:8123
|
|
|
|
plausible:
|
|
build:
|
|
context: .
|
|
dockerfile: ./Dockerfile
|
|
command: sh -c "sleep 10 && /entrypoint.sh db migrate && /entrypoint.sh run"
|
|
depends_on:
|
|
- plausible_db
|
|
- plausible_events_db
|
|
- fake_smtp
|
|
ports:
|
|
- 80:8080
|
|
links:
|
|
- plausible_db
|
|
- plausible_events_db
|
|
- fake_smtp
|
|
env_file:
|
|
- plausible-variables.sample.env
|
|
environment:
|
|
- GEOLITE2_COUNTRY_DB=/geoip/GeoLite2-Country.mmdb
|
|
|
|
setup:
|
|
build:
|
|
context: .
|
|
dockerfile: ./Dockerfile
|
|
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin"
|
|
depends_on:
|
|
- plausible_db
|
|
- plausible_events_db
|
|
links:
|
|
- plausible_db
|
|
- plausible_events_db
|
|
env_file:
|
|
- plausible-variables.sample.env
|
|
|
|
|
|
volumes:
|
|
db-data:
|
|
driver: local
|
|
event-data:
|
|
driver: local
|