From ff3b57066f02d65ccc8726c0793316457e3ed4a7 Mon Sep 17 00:00:00 2001 From: ruslandoga <67764432+ruslandoga@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:04:43 +0700 Subject: [PATCH] use 80 and 443 by default --- README.md | 4 ---- compose.yml | 10 +++++----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 1a6287f..8440623 100644 --- a/README.md +++ b/README.md @@ -34,14 +34,10 @@ To set up Plausible CE quickly, follow these steps: ```console $ touch .env - $ echo "HTTP_PORT=80" >> .env - $ echo "HTTPS_PORT=443" >> .env $ echo "BASE_URL=https://plausible.example.com" >> .env $ echo "SECRET_KEY_BASE=$(openssl rand -base64 48)" >> .env $ cat .env - HTTP_PORT=80 - HTTPS_PORT=443 BASE_URL=https://plausible.example.com SECRET_KEY_BASE=As0fZsJlUpuFYSthRjT5Yflg/NlxkFKPRro72xMLXF8yInZ60s6xGGXYVqml+XN1 ``` diff --git a/compose.yml b/compose.yml index 38634d6..eb4363d 100644 --- a/compose.yml +++ b/compose.yml @@ -38,17 +38,17 @@ services: condition: service_healthy plausible_events_db: condition: service_healthy + # Note that setting ports opens firewall for external access. ports: - # Note that setting ports opens firewall for external access. - - ${HTTP_PORT}:${HTTP_PORT} - - ${HTTPS_PORT}:${HTTPS_PORT} + - 80:80 + - 443:443 volumes: - plausible-data:/var/lib/plausible environment: - BASE_URL=${BASE_URL} - SECRET_KEY_BASE=${SECRET_KEY_BASE} - - HTTP_PORT - - HTTPS_PORT + - HTTP_PORT=80 + - HTTPS_PORT=443 volumes: db-data: