You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can start our instance now but the requests would be served over HTTP. Not cool! Let's configure [Caddy](https://caddyserver.com) to enable HTTPS.
101
+
We can start our instance now.
103
102
104
-
#### Caddy
105
-
106
-
> [!TIP]
107
-
> For other reverse-proxy setups please see [reverse-proxy](./reverse-proxy) docs.
103
+
#### Reverse proxy
108
104
109
105
<details>
110
-
<summary>Don't need reverse proxy?</summary>
106
+
<summary>Using a reverse proxy?</summary>
111
107
112
108
---
113
109
114
-
If you're **opting out** of a reverse proxy and HTTPS, you'll need to adjust the Plausible service [configuration](./docker-compose.yml#L38) to ensure it's not limited to localhost (127.0.0.1). This change allows the service to be accessible from any network interface:
110
+
> [!TIP]
111
+
> Please see [reverse-proxy](./reverse-proxy) docs for some reverse-proxy setups.
112
+
113
+
If you're using a reverse proxy, you'll might want to adjust the Plausible service [configuration](./docker-compose.yml#L38) to ensure it's limited to localhost (127.0.0.1).
$ docker compose -f docker-compose.yml -f reverse-proxy/docker-compose.caddy-gen.yml up -d
141
+
$ docker compose up -d
160
142
[+] Running 19/19
161
143
✔ plausible_db 9 layers [⣿⣿⣿⣿⣿⣿⣿] Pulled
162
144
✔ plausible_events_db 7 layers [⣿⣿⣿⣿⣿⣿⣿] Pulled
163
145
✔ plausible 7 layers [⣿⣿⣿⣿⣿⣿⣿] Pulled
164
-
✔ caddy-gen 8 layers [⣿⣿⣿⣿⣿⣿⣿⣿] Pulled
165
-
[+] Running 5/5
146
+
[+] Running 4/4
166
147
✔ Network hosting_default Created
167
148
✔ Container hosting-plausible_db-1 Started
168
149
✔ Container hosting-plausible_events_db-1 Started
169
150
✔ Container hosting-plausible-1 Started
170
-
✔ Container caddy-gen Started
171
151
```
172
152
173
-
It takes some time to start PostgreSQL and ClickHouse, create the databases, and run the migrations. After about fifteen seconds you should be able to access your instance at the base URL and see the registration screen for the admin user.
153
+
It takes some time to start PostgreSQL and ClickHouse, create the databases, run the migrations, and issue a TLS certificate. After about fifteen seconds you should be able to access your instance at the base URL and see the registration screen for the admin user.
174
154
175
155
> [!TIP]
176
156
> If something feels off, make sure to check out the logs with <kbd>docker compose logs</kbd> and start a [GitHub discussion.](https://github.com/plausible/analytics/discussions/categories/self-hosted-support)
@@ -208,7 +188,7 @@ $ docker compose rm plausible
208
188
? Going to remove hosting-plausible-1 Yes
209
189
[+] Running 1/0
210
190
✔ Container hosting-plausible-1 Removed
211
-
$ docker compose -f docker-compose.yml -f reverse-proxy/docker-compose.caddy-gen.yml up -d
> You can omit <kbd>-f docker-compose.yml -f reverse-proxy/docker-compose.caddy-gen.yml</kbd> if you are not using Caddy.
237
-
238
214
Changes in major versions would involve performing a data migration (e.g. [v2.0.0](https://github.com/plausible/analytics/releases/tag/v2.0.0)) or some other extra step.
0 commit comments