From ecbbd7c7e1a110a7973148d608bfafd891d539a2 Mon Sep 17 00:00:00 2001 From: ruslandoga <67764432+ruslandoga@users.noreply.github.com> Date: Sat, 14 Sep 2024 13:38:42 +0700 Subject: [PATCH] wip --- README.md | 5 +++++ compose.yml | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6aef110..95217cc 100644 --- a/README.md +++ b/README.md @@ -31,10 +31,15 @@ ```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 d8a9962..9ee7537 100644 --- a/compose.yml +++ b/compose.yml @@ -41,8 +41,8 @@ services: condition: service_healthy ports: # Note that setting ports opens firewall for external access. - - 80:80 - - 443:443 + - 80:${HTTP_PORT} + - 443:${HTTPS_PORT} volumes: - plausible-data:/var/lib/plausible ulimits: @@ -52,8 +52,8 @@ services: environment: - BASE_URL=${BASE_URL} - SECRET_KEY_BASE=${SECRET_KEY_BASE} - - HTTP_PORT=80 - - HTTPS_PORT=443 + - HTTP_PORT + - HTTPS_PORT volumes: db-data: