Update plausible.yml (#1021)
This commit is contained in:
parent
cda389eb53
commit
4c00c1e04e
|
|
@ -3,7 +3,6 @@ captainVersion: 4
|
||||||
services:
|
services:
|
||||||
$$cap_appname-mail:
|
$$cap_appname-mail:
|
||||||
image: bytemark/smtp
|
image: bytemark/smtp
|
||||||
restart: always
|
|
||||||
environment:
|
environment:
|
||||||
RELAY_HOST: $$cap_RELAY_HOST
|
RELAY_HOST: $$cap_RELAY_HOST
|
||||||
RELAY_PORT: $$cap_RELAY_PORT
|
RELAY_PORT: $$cap_RELAY_PORT
|
||||||
|
|
@ -23,7 +22,7 @@ services:
|
||||||
notExposeAsWebApp: 'true'
|
notExposeAsWebApp: 'true'
|
||||||
|
|
||||||
$$cap_appname-clickhouse:
|
$$cap_appname-clickhouse:
|
||||||
image: yandex/clickhouse-server:$$cap_CLICKHOUSE_VERSION
|
image: clickhouse/clickhouse-server:$$cap_CLICKHOUSE_VERSION
|
||||||
volumes:
|
volumes:
|
||||||
- $$cap_appname-clickhouse-data:/var/lib/clickhouse
|
- $$cap_appname-clickhouse-data:/var/lib/clickhouse
|
||||||
caproverExtra:
|
caproverExtra:
|
||||||
|
|
@ -38,39 +37,19 @@ services:
|
||||||
containerHttpPort: '8000'
|
containerHttpPort: '8000'
|
||||||
dockerfileLines:
|
dockerfileLines:
|
||||||
- FROM plausible/analytics:$$cap_PLAUSIBLE_VERSION
|
- 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 run"]
|
||||||
environment:
|
environment:
|
||||||
ADMIN_USER_EMAIL: $$cap_ADMIN_USER_EMAIL
|
|
||||||
ADMIN_USER_NAME: $$cap_ADMIN_USER_NAME
|
|
||||||
ADMIN_USER_PWD: $$cap_ADMIN_USER_PWD
|
|
||||||
BASE_URL: http://$$cap_appname.$$cap_root_domain
|
BASE_URL: http://$$cap_appname.$$cap_root_domain
|
||||||
|
SECRET_KEY_BASE: $$cap_gen_random_hex(64)
|
||||||
DATABASE_URL: postgres://plausible:$$cap_POSTGRES_PASSWORD@srv-captain--$$cap_appname-postgres:5432/plausible
|
DATABASE_URL: postgres://plausible:$$cap_POSTGRES_PASSWORD@srv-captain--$$cap_appname-postgres:5432/plausible
|
||||||
CLICKHOUSE_DATABASE_URL: http://srv-captain--$$cap_appname-clickhouse:8123/plausible
|
CLICKHOUSE_DATABASE_URL: http://srv-captain--$$cap_appname-clickhouse:8123/plausible
|
||||||
SECRET_KEY_BASE: $$cap_gen_random_hex(64)
|
|
||||||
SIGNING_SALT: $$cap_gen_random_hex(24)
|
|
||||||
DISABLE_REGISTRATION: 'true'
|
DISABLE_REGISTRATION: 'true'
|
||||||
DISABLE_SUBSCRIPTION: 'true'
|
|
||||||
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'
|
||||||
|
|
||||||
caproverOneClickApp:
|
caproverOneClickApp:
|
||||||
variables:
|
variables:
|
||||||
- defaultValue: 'admin@example.com'
|
|
||||||
description: This is the admin email. Please change it.
|
|
||||||
id: $$cap_ADMIN_USER_EMAIL
|
|
||||||
label: ADMIN_USER_EMAIL
|
|
||||||
validRegex: /^([^\s^\/])+$/
|
|
||||||
- defaultValue: 'admin'
|
|
||||||
description: This is the admin username. Please change it.
|
|
||||||
id: $$cap_ADMIN_USER_NAME
|
|
||||||
label: ADMIN_USER_NAME
|
|
||||||
validRegex: /^([^\s^\/])+$/
|
|
||||||
- defaultValue: 'password'
|
|
||||||
description: This is the admin password. Please change it.
|
|
||||||
id: $$cap_ADMIN_USER_PWD
|
|
||||||
label: ADMIN_USER_PWD
|
|
||||||
validRegex: /^([^\s^\/])+$/
|
|
||||||
- defaultValue: 'plausible'
|
- defaultValue: 'plausible'
|
||||||
description: This is the PostgreSQL password for user 'plausible'. Please change it.
|
description: This is the PostgreSQL password for user 'plausible'. Please change it.
|
||||||
id: $$cap_POSTGRES_PASSWORD
|
id: $$cap_POSTGRES_PASSWORD
|
||||||
|
|
@ -93,20 +72,20 @@ caproverOneClickApp:
|
||||||
id: $$cap_RELAY_PASSWORD
|
id: $$cap_RELAY_PASSWORD
|
||||||
label: RELAY_PASSWORD
|
label: RELAY_PASSWORD
|
||||||
validRegex: /^([^\s^\/])+$/
|
validRegex: /^([^\s^\/])+$/
|
||||||
- description: The version of Plausible docker image (from https://hub.docker.com/r/plausible/analytics/tags eg. v1 or v1.4)
|
- description: The version of Plausible docker image (from https://hub.docker.com/r/plausible/analytics/tags e.g. v2.0)
|
||||||
id: $$cap_PLAUSIBLE_VERSION
|
id: $$cap_PLAUSIBLE_VERSION
|
||||||
label: PLAUSIBLE_VERSION
|
label: PLAUSIBLE_VERSION
|
||||||
defaultValue: v1
|
defaultValue: v2.0
|
||||||
validRegex: /^([^\s^\/])+$/
|
validRegex: /^([^\s^\/])+$/
|
||||||
- description: Clickhouse version (from https://hub.docker.com/r/yandex/clickhouse-server/tags, eg 21.12.2.17)
|
- description: Clickhouse version (from https://hub.docker.com/r/clickhouse/clickhouse-server/tags, e.g. 23.3.7.5-alpine)
|
||||||
id: $$cap_CLICKHOUSE_VERSION
|
id: $$cap_CLICKHOUSE_VERSION
|
||||||
label: CLICKHOUSE_VERSION
|
label: CLICKHOUSE_VERSION
|
||||||
defaultValue: 21.3.2.5
|
defaultValue: 23.3.7.5-alpine
|
||||||
validRegex: /^([^\s^\/])+$/
|
validRegex: /^([^\s^\/])+$/
|
||||||
- description: Postgres version (from https://hub.docker.com/_/postgres?tab=tags, eg 12 or 12-alpine)
|
- description: Postgres version (from https://hub.docker.com/_/postgres?tab=tags, supported versions are 12, 13, and 14)
|
||||||
id: $$cap_POSTGRES_VERSION
|
id: $$cap_POSTGRES_VERSION
|
||||||
label: POSTGRES_VERSION
|
label: POSTGRES_VERSION
|
||||||
defaultValue: 12-alpine
|
defaultValue: 14-alpine
|
||||||
validRegex: /^([^\s^\/])+$/
|
validRegex: /^([^\s^\/])+$/
|
||||||
instructions:
|
instructions:
|
||||||
start: >-
|
start: >-
|
||||||
|
|
@ -116,7 +95,7 @@ caproverOneClickApp:
|
||||||
- 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 and
|
- official PostgreSQL image based on Alpine Linux and
|
||||||
- ClickHouse image https://hub.docker.com/r/yandex/clickhouse-server.
|
- ClickHouse image https://hub.docker.com/r/clickhouse/clickhouse-server.
|
||||||
This version includes an open source geoip database (db-ip). If you would like to use Maxmind db,
|
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
|
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
|
compose file for reference: https://github.com/plausible/hosting/blob/master/geoip/docker-compose.geoip.yml
|
||||||
|
|
@ -125,10 +104,10 @@ caproverOneClickApp:
|
||||||
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
|
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.
|
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 v2
|
||||||
isOfficial: false
|
isOfficial: false
|
||||||
description: Plausible is a lightweight and open-source website analytics tool.
|
description: Plausible is a lightweight and open-source website analytics tool.
|
||||||
documentation: Taken from https://plausible.io/.
|
documentation: Taken from https://plausible.io/.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue