Remove maxmind container from Plausible (#580)
* Remove maxmind container from Plausible * Add version to app settings * Add image tags for clickhouse and postgres * Run prettier * Fix lables * Add additional plausible documentation
This commit is contained in:
parent
ffca42606d
commit
a5accea5d5
|
|
@ -13,7 +13,7 @@ services:
|
||||||
notExposeAsWebApp: 'true'
|
notExposeAsWebApp: 'true'
|
||||||
|
|
||||||
$$cap_appname-postgres:
|
$$cap_appname-postgres:
|
||||||
image: postgres:12-alpine
|
image: postgres:$$cap_POSTGRES_VERSION
|
||||||
volumes:
|
volumes:
|
||||||
- $$cap_appname-postgres-data:/var/lib/postgresql/data
|
- $$cap_appname-postgres-data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -23,22 +23,12 @@ services:
|
||||||
notExposeAsWebApp: 'true'
|
notExposeAsWebApp: 'true'
|
||||||
|
|
||||||
$$cap_appname-clickhouse:
|
$$cap_appname-clickhouse:
|
||||||
image: yandex/clickhouse-server:20.8.5.45
|
image: yandex/clickhouse-server:$$cap_CLICKHOUSE_VERSION
|
||||||
volumes:
|
volumes:
|
||||||
- $$cap_appname-clickhouse-data:/var/lib/clickhouse
|
- $$cap_appname-clickhouse-data:/var/lib/clickhouse
|
||||||
caproverExtra:
|
caproverExtra:
|
||||||
notExposeAsWebApp: 'true'
|
notExposeAsWebApp: 'true'
|
||||||
|
|
||||||
$$cap_appname-geoip:
|
|
||||||
image: maxmindinc/geoipupdate:v4.5
|
|
||||||
environment:
|
|
||||||
GEOIPUPDATE_ACCOUNT_ID: $$cap_GEOIPUPDATE_ACCOUNT_ID
|
|
||||||
GEOIPUPDATE_LICENSE_KEY: $$cap_GEOIPUPDATE_LICENSE_KEY
|
|
||||||
GEOIPUPDATE_EDITION_IDS: GeoLite2-Country
|
|
||||||
GEOIPUPDATE_FREQUENCY: 168
|
|
||||||
volumes:
|
|
||||||
- $$cap_appname-geoip-data:/usr/share/GeoIP
|
|
||||||
|
|
||||||
$$cap_appname:
|
$$cap_appname:
|
||||||
depends_on:
|
depends_on:
|
||||||
- $$cap_appname-postgres
|
- $$cap_appname-postgres
|
||||||
|
|
@ -47,7 +37,7 @@ services:
|
||||||
caproverExtra:
|
caproverExtra:
|
||||||
containerHttpPort: '8000'
|
containerHttpPort: '8000'
|
||||||
dockerfileLines:
|
dockerfileLines:
|
||||||
- FROM plausible/analytics:v1.1.1
|
- FROM plausible/analytics:$$cap_PLAUSIBLE_VERSION
|
||||||
- CMD ["sh", "-c", "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run"]
|
- CMD ["sh", "-c", "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run"]
|
||||||
environment:
|
environment:
|
||||||
ADMIN_USER_EMAIL: $$cap_ADMIN_USER_EMAIL
|
ADMIN_USER_EMAIL: $$cap_ADMIN_USER_EMAIL
|
||||||
|
|
@ -63,9 +53,6 @@ services:
|
||||||
MAILER_EMAIL: $$cap_RELAY_USERNAME
|
MAILER_EMAIL: $$cap_RELAY_USERNAME
|
||||||
SMTP_HOST_ADDR: srv-captain--$$cap_appname-mail
|
SMTP_HOST_ADDR: srv-captain--$$cap_appname-mail
|
||||||
SMTP_HOST_PORT: '25'
|
SMTP_HOST_PORT: '25'
|
||||||
GEOLITE2_COUNTRY_DB: '/geoip/GeoLite2-Country.mmdb'
|
|
||||||
volumes:
|
|
||||||
- $$cap_appname-geoip-data:/geoip
|
|
||||||
|
|
||||||
caproverOneClickApp:
|
caproverOneClickApp:
|
||||||
variables:
|
variables:
|
||||||
|
|
@ -107,28 +94,40 @@ caproverOneClickApp:
|
||||||
id: $$cap_RELAY_PASSWORD
|
id: $$cap_RELAY_PASSWORD
|
||||||
label: RELAY_PASSWORD
|
label: RELAY_PASSWORD
|
||||||
validRegex: /^([^\s^\/])+$/
|
validRegex: /^([^\s^\/])+$/
|
||||||
- description: Provide your own ACCOUNT_ID, you can sign-up at https://www.maxmind.com/en/geoip2-services-and-databases
|
- description: The version of Plausible docker image (from https://hub.docker.com/r/plausible/analytics/tags eg. v1 or v1.4)
|
||||||
id: $$cap_GEOIPUPDATE_ACCOUNT_ID
|
id: $$cap_PLAUSIBLE_VERSION
|
||||||
label: GEOIPUPDATE_ACCOUNT_ID
|
label: PLAUSIBLE_VERSION
|
||||||
|
defaultValue: v1
|
||||||
validRegex: /^([^\s^\/])+$/
|
validRegex: /^([^\s^\/])+$/
|
||||||
- description: Provide the corresponding License Key for your own ACCOUNT_ID.
|
- description: Clickhouse version (from https://hub.docker.com/r/yandex/clickhouse-server/tags, eg 21.12.2.17)
|
||||||
id: $$cap_GEOIPUPDATE_LICENSE_KEY
|
id: $$cap_CLICKHOUSE_VERSION
|
||||||
label: GEOIPUPDATE_LICENSE_KEY
|
label: CLICKHOUSE_VERSION
|
||||||
|
defaultValue: 21.3.2.5
|
||||||
|
validRegex: /^([^\s^\/])+$/
|
||||||
|
- description: Postgres version (from https://hub.docker.com/_/postgres?tab=tags, eg 12 or 12-alpine)
|
||||||
|
id: $$cap_POSTGRES_VERSION
|
||||||
|
label: POSTGRES_VERSION
|
||||||
|
defaultValue: 12-alpine
|
||||||
validRegex: /^([^\s^\/])+$/
|
validRegex: /^([^\s^\/])+$/
|
||||||
instructions:
|
instructions:
|
||||||
start: >-
|
start: >-
|
||||||
Plausible is a lightweight and open-source website analytics tool.
|
Plausible is a lightweight and open-source website analytics tool.
|
||||||
It doesn’t use cookies and is fully compliant with GDPR, CCPA and PECR. Made and hosted in the EU.
|
It doesn't use cookies and is fully compliant with GDPR, CCPA and PECR. Made and hosted in the EU.
|
||||||
This one click app uses the:
|
This one click app uses the:
|
||||||
- official image from https://hub.docker.com/r/plausible/analytics
|
- official image from https://hub.docker.com/r/plausible/analytics
|
||||||
- https://hub.docker.com/r/bytemark/smtp, that allows linked containers to send outgoing email
|
- https://hub.docker.com/r/bytemark/smtp, that allows linked containers to send outgoing email
|
||||||
- official PostgreSQL image based on Alpine Linux
|
- official PostgreSQL image based on Alpine Linux and
|
||||||
- ClickHouse image https://hub.docker.com/r/yandex/clickhouse-server, an open-source column-oriented database
|
- ClickHouse image https://hub.docker.com/r/yandex/clickhouse-server.
|
||||||
- official image from https://hub.docker.com/r/maxmindinc/geoipupdate, the well known MaxMind GeoIP Update Tool.
|
This version includes an open source geoip database (db-ip). If you would like to use Maxmind db,
|
||||||
|
You will need to mount a volume and an additional container to update the database. You can use this docker
|
||||||
|
compose file for reference: https://github.com/plausible/hosting/blob/master/geoip/docker-compose.geoip.yml
|
||||||
end: >-
|
end: >-
|
||||||
Plausible.io is deployed and available as $$cap_appname.
|
Plausible.io is deployed and available as $$cap_appname.
|
||||||
In case you add a new domain to your application, remember to set the environment variable BASE_URL accordingly.
|
In case you add a new domain to your application, remember to set the environment variable BASE_URL accordingly.
|
||||||
|
|
||||||
|
See https://github.com/plausible/analytics/blob/master/config/runtime.exs for all configurable
|
||||||
|
environment variables, for features like Google search, postmark, and slack integrations.
|
||||||
|
|
||||||
IMPORTANT: It will take up to 2 minutes for Plausible to be ready. Before that, you might see 502 error page.
|
IMPORTANT: It will take up to 2 minutes for Plausible to be ready. Before that, you might see 502 error page.
|
||||||
displayName: Plausible
|
displayName: Plausible
|
||||||
isOfficial: false
|
isOfficial: false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue