This commit is contained in:
ruslandoga 2024-09-04 16:19:28 +07:00 committed by GitHub
parent e36dd47ef8
commit f8d80b1a4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,14 +31,16 @@ To set up Plausible Community Edition quickly, follow these steps:
compose.yml compose.yml
``` ```
1. Create and configure your environment file: 1. Create and configure your [environment file:](https://docs.docker.com/compose/environment-variables/)
```console ```console
$ touch .env $ touch .env
$ echo "HTTP_PORT=8080" >> .env $ echo "HTTP_PORT=8080" >> .env
$ echo "HTTPS_PORT=8443" >> .env $ echo "HTTPS_PORT=8443" >> .env
$ echo "BASE_URL=https://plausible.example.com:8443" >> .env $ echo "BASE_URL=https://plausible.example.com:8443" >> .env
$ echo "SECRET_KEY_BASE=$(docker run -ti --rm ghcr.io/plausible/community-edition:v2.1.2 openssl rand -base64 48)" >> .env $ echo "SECRET_KEY_BASE=$(docker run -ti --rm ghcr.io/plausible/community-edition:v2.1.2 openssl rand -base64 48)" >> .env
$ cat .env $ cat .env
HTTP_PORT=8080 HTTP_PORT=8080
HTTPS_PORT=8443 HTTPS_PORT=8443