Update compose.example.yml

This commit is contained in:
ruslandoga 2024-07-17 23:31:32 +07:00 committed by GitHub
parent 20e4049890
commit 7e882c60ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ services:
plausible:
image: ghcr.io/plausible/community-edition:v2.1.2
restart: always
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
command: sh -c "/entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
depends_on:
- plausible_db
- plausible_events_db
@ -35,15 +35,14 @@ services:
volumes:
- plausible-data:/var/lib/plausible
environment:
- BASE_URL=replace-me
- SECRET_KEY_BASE=replace-me
- TOTP_VAULT_KEY=replace-me
- DATA_DIR=/var/lib/plausible
- SITE_ENCRYPT_DIRECTORY_URL=https://acme-v02.api.letsencrypt.org/directory
- SITE_ENCRYPT_DB_FOLDER=/var/lib/plausible/site_encrypt_db
- SITE_ENCRYPT_MODE=auto
- SITE_ENCRYPT_CLIENT=certbot
- LOG_LEVEL=notice
# replace with the URL where your dashboard would be accessible
# ensure https:// scheme if you use https
- BASE_URL=replace-me
# use `openssl rand -base64 48` to generate a $SECRET_KEY_BASE
- SECRET_KEY_BASE=replace-me
- HTTP_PORT=8000
- HTTPS_PORT=8001
volumes:
db-data: