Compare commits
8 Commits
pre-rebase
...
pre-rebase
| Author | SHA1 | Date | |
|---|---|---|---|
| 0febe9c3a5 | |||
| 139e942f06 | |||
| 3725ee38ad | |||
| 1cd30ee414 | |||
|
|
5cb5234fd7 | ||
|
|
33a33aae88 | ||
|
|
d29d2f0dfa | ||
|
|
7648365635 |
@@ -23,7 +23,7 @@
|
||||
1. Clone this repository:
|
||||
|
||||
```console
|
||||
$ git clone -b v3.0.1 --single-branch https://github.com/plausible/community-edition plausible-ce
|
||||
$ git clone -b v3.1.0 --single-branch https://github.com/plausible/community-edition plausible-ce
|
||||
Cloning into 'plausible-ce'...
|
||||
remote: Enumerating objects: 13, done.
|
||||
remote: Counting objects: 100% (10/10), done.
|
||||
@@ -34,9 +34,10 @@
|
||||
$ cd plausible-ce
|
||||
|
||||
$ ls -1
|
||||
README.md
|
||||
clickhouse/
|
||||
compose.yml
|
||||
LICENSE
|
||||
README.md
|
||||
```
|
||||
|
||||
1. Create and configure your [environment](https://docs.docker.com/compose/environment-variables/) file:
|
||||
@@ -51,7 +52,9 @@
|
||||
SECRET_KEY_BASE=As0fZsJlUpuFYSthRjT5Yflg/NlxkFKPRro72xMLXF8yInZ60s6xGGXYVqml+XN1
|
||||
```
|
||||
|
||||
Make sure `$BASE_URL` is set to the actual domain where you plan to host the service. The domain must have a DNS entry pointing to your server for proper resolution and automatic Let's Encrypt TLS certificate issuance. More on that in the next step.
|
||||
Make sure `$BASE_URL` is set to the **actual domain** where you plan to host the service. The domain must have a DNS entry pointing to your server for proper resolution and automatic Let's Encrypt TLS certificate issuance. More on that in the next step.
|
||||
|
||||
Also ensure `$SECRET_KEY_BASE` is set to at least a **64-byte** string.
|
||||
|
||||
1. Expose Plausible server to the web with a [compose override file:](https://github.com/plausible/community-edition/wiki/compose-override)
|
||||
|
||||
|
||||
4
compose.override.yml
Normal file
4
compose.override.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
services:
|
||||
plausible:
|
||||
ports:
|
||||
- 127.0.0.1:84:80
|
||||
14
compose.yml
14
compose.yml
@@ -1,9 +1,10 @@
|
||||
services:
|
||||
plausible_db:
|
||||
image: postgres:16-alpine
|
||||
stop_grace_period: 60s
|
||||
restart: always
|
||||
volumes:
|
||||
- db-data:/var/lib/postgresql/data
|
||||
- ./data/postgres:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
healthcheck:
|
||||
@@ -12,10 +13,11 @@ services:
|
||||
|
||||
plausible_events_db:
|
||||
image: clickhouse/clickhouse-server:24.12-alpine
|
||||
stop_grace_period: 60s
|
||||
restart: always
|
||||
volumes:
|
||||
- event-data:/var/lib/clickhouse
|
||||
- event-logs:/var/log/clickhouse-server
|
||||
- ./data/clickhouse:/var/lib/clickhouse
|
||||
- ./data/clickhouse-logs:/var/log/clickhouse-server
|
||||
- ./clickhouse/logs.xml:/etc/clickhouse-server/config.d/logs.xml:ro
|
||||
# This makes ClickHouse bind to IPv4 only, since Docker doesn't enable IPv6 in bridge networks by default.
|
||||
# Fixes "Listen [::]:9000 failed: Address family for hostname not supported" warnings.
|
||||
@@ -34,7 +36,8 @@ services:
|
||||
start_period: 1m
|
||||
|
||||
plausible:
|
||||
image: ghcr.io/plausible/community-edition:v3.0.1
|
||||
image: ghcr.io/plausible/community-edition:v3.1.0
|
||||
stop_grace_period: 60s
|
||||
restart: always
|
||||
command: sh -c "/entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
||||
depends_on:
|
||||
@@ -89,7 +92,4 @@ services:
|
||||
- SENDGRID_API_KEY
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
event-data:
|
||||
event-logs:
|
||||
plausible-data:
|
||||
|
||||
Reference in New Issue
Block a user