mirror of
https://github.com/plausible/hosting.git
synced 2025-01-15 14:34:30 -06:00
wip
This commit is contained in:
parent
a009f15005
commit
ecbbd7c7e1
@ -31,10 +31,15 @@
|
|||||||
|
|
||||||
```console
|
```console
|
||||||
$ touch .env
|
$ touch .env
|
||||||
|
|
||||||
|
$ echo "HTTP_PORT=80" >> .env
|
||||||
|
$ echo "HTTPS_PORT=443" >> .env
|
||||||
$ echo "BASE_URL=https://plausible.example.com" >> .env
|
$ echo "BASE_URL=https://plausible.example.com" >> .env
|
||||||
$ echo "SECRET_KEY_BASE=$(openssl rand -base64 48)" >> .env
|
$ echo "SECRET_KEY_BASE=$(openssl rand -base64 48)" >> .env
|
||||||
|
|
||||||
$ cat .env
|
$ cat .env
|
||||||
|
HTTP_PORT=80
|
||||||
|
HTTPS_PORT=443
|
||||||
BASE_URL=https://plausible.example.com
|
BASE_URL=https://plausible.example.com
|
||||||
SECRET_KEY_BASE=As0fZsJlUpuFYSthRjT5Yflg/NlxkFKPRro72xMLXF8yInZ60s6xGGXYVqml+XN1
|
SECRET_KEY_BASE=As0fZsJlUpuFYSthRjT5Yflg/NlxkFKPRro72xMLXF8yInZ60s6xGGXYVqml+XN1
|
||||||
```
|
```
|
||||||
|
@ -41,8 +41,8 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
ports:
|
ports:
|
||||||
# Note that setting ports opens firewall for external access.
|
# Note that setting ports opens firewall for external access.
|
||||||
- 80:80
|
- 80:${HTTP_PORT}
|
||||||
- 443:443
|
- 443:${HTTPS_PORT}
|
||||||
volumes:
|
volumes:
|
||||||
- plausible-data:/var/lib/plausible
|
- plausible-data:/var/lib/plausible
|
||||||
ulimits:
|
ulimits:
|
||||||
@ -52,8 +52,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- BASE_URL=${BASE_URL}
|
- BASE_URL=${BASE_URL}
|
||||||
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
|
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
|
||||||
- HTTP_PORT=80
|
- HTTP_PORT
|
||||||
- HTTPS_PORT=443
|
- HTTPS_PORT
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db-data:
|
db-data:
|
||||||
|
Loading…
Reference in New Issue
Block a user