2022-02-22 16:02:03 +01:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
plausible:
|
|
|
|
name: ${PLAUSIBLE_VOLUME_NAME:-plausible}
|
|
|
|
|
|
|
|
services:
|
|
|
|
plausible:
|
|
|
|
container_name: ${PLAUSIBLE_CONTAINER_NAME:-plausible}
|
|
|
|
image: ${PLAUSIBLE_IMAGE:-plausible/analytics:v1.4.4}
|
|
|
|
restart: always
|
|
|
|
command: ${PLAUSIBLE_DOCKER_COMMAND:-sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run"}
|
|
|
|
depends_on:
|
|
|
|
- clickhouse
|
|
|
|
- postgres
|
|
|
|
environment:
|
|
|
|
ADMIN_USER_NAME: ${ADMIN_USER_NAME:?err}
|
|
|
|
ADMIN_USER_EMAIL: ${ADMIN_USER_EMAIL:?err}
|
|
|
|
ADMIN_USER_PWD: ${ADMIN_USER_PWD:?err}
|
2022-02-22 16:28:41 +01:00
|
|
|
BASE_URL: ${BASE_URL}
|
2022-02-22 16:02:03 +01:00
|
|
|
SECRET_KEY_BASE: ${SECRET_KEY_BASE:?err}
|
|
|
|
DISABLE_AUTH: ${DISABLE_AUTH:-false}
|
|
|
|
DISABLE_REGISTRATION: ${DISABLE_REGISTRATION:-false}
|
|
|
|
DATABASE_URL: postgres://${POSTGRES_USER:?err}:${POSTGRES_PASSWORD:?err}@${POSTGRES_CONTAINER_NAME:-postgres}:5432/${POSTGRES_DB:?err}
|
|
|
|
CLICKHOUSE_DATABASE_URL: http://${CLICKHOUSE_CONTAINER_NAME:-clickhouse}:8123/${CLICKHOUSE_CONTAINER_NAME:-clickhouse}
|
2022-02-23 09:59:05 +01:00
|
|
|
SITE_LIMIT: ${SITE_LIMIT:-3}
|
|
|
|
SELFHOST: ${SELFHOST:-true}
|
2022-02-22 16:02:03 +01:00
|
|
|
volumes:
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|