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
Copy file name to clipboardExpand all lines: docs/self-hosting/configuration.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ The configuration contains placeholders (`your-domain.com`, `your-bucket-name`,
13
13
14
14
The configuration example below is for a production environment using HTTPS. You can adjust the values to your needs, in any case you will have to change `APP_URL` to the URL of your solidtime instance.
You can run `docker run --rm solidtime/solidtime:main php artisan self-host:generate-keys` to obtain `APP_KEY`, `PASSPORT_PRIVATE_KEY` and `PASSPORT_PUBLIC_KEY`
33
33
34
-
```dotenv
34
+
```bash
35
35
APP_KEY=""
36
36
PASSPORT_PRIVATE_KEY=""
37
37
PASSPORT_PUBLIC_KEY=""
@@ -51,21 +51,21 @@ You can read more about the logging configuration in the [Laravel documentation]
51
51
52
52
**Store logs in files under storage/logs with one log file per day:**
53
53
54
-
```dotenv
54
+
```bash
55
55
LOG_CHANNEL="daily"
56
56
LOG_LEVEL="debug"
57
57
```
58
58
59
59
**Output logs via stderr:**
60
60
61
-
```dotenv
61
+
```bash
62
62
LOG_CHANNEL="stderr"
63
63
LOG_LEVEL="debug"
64
64
```
65
65
66
66
**Output logs via stderr and store the in daily log files:**
67
67
68
-
```dotenv
68
+
```bash
69
69
LOG_CHANNEL="stderr_daily"
70
70
LOG_LEVEL="debug"
71
71
```
@@ -75,7 +75,7 @@ LOG_LEVEL="debug"
75
75
You can read more about the database configuration in the [Laravel documentation](https://laravel.com/docs/11.x/database#configuration).
76
76
Please remember that solidtime only supports PostgreSQL.
77
77
78
-
```dotenv
78
+
```bash
79
79
DB_HOST="your-database-host-or-ip"
80
80
DB_PORT="5432"
81
81
DB_SSLMODE="require"
@@ -90,7 +90,7 @@ Configure the email settings for sending emails. Solidtime supports every (trans
90
90
91
91
### Example using Scaleway TEM via SMTP
92
92
93
-
```dotenv
93
+
```bash
94
94
MAIL_MAILER="smtp"
95
95
MAIL_HOST="smtp.tem.scw.cloud"
96
96
MAIL_PORT="465"
@@ -107,7 +107,7 @@ If you want to test f.e. the registration before setting up a transactional emai
107
107
This logs outgoing emails to the log file.
108
108
If you want to copy the link for the email verification, use the one from the textual, non-HTML version of the email in the log file.
109
109
110
-
```dotenv
110
+
```bash
111
111
MAIL_MAILER="log"
112
112
```
113
113
@@ -119,15 +119,15 @@ You can read more about the queue configuration in the [Laravel documentation](h
119
119
120
120
You can use this option if you don't want to use a separate Queue Worker (f.e. a `worker` container, see [Container Mode](./container-mode.md)) that handles queued jobs asynchronously. It will dispatch jobs synchronously. **We do not recommend using this option in production.**
121
121
122
-
```dotenv
122
+
```bash
123
123
QUEUE_CONNECTION="sync"
124
124
```
125
125
126
126
### Database
127
127
128
128
Please keep in mind that you need a separate Queue Worker (f.e. a `worker` container, see [Container Mode](./container-mode.md)) that handles queued jobs asynchronously to use this configuration option.
129
129
130
-
```dotenv
130
+
```bash
131
131
QUEUE_CONNECTION="database"
132
132
```
133
133
@@ -143,14 +143,14 @@ You can read more about the file storage configuration in the [Laravel documenta
Copy file name to clipboardExpand all lines: docs/self-hosting/container-mode.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,18 +10,24 @@ The mode can be defined by setting the `CONTAINER_MODE` environment variable on
10
10
11
11
## HTTP Server
12
12
13
-
`CONTAINER_MODE=http`
13
+
```bash
14
+
CONTAINER_MODE=http
15
+
```
14
16
15
17
The HTTP server mode is the default mode. It starts the HTTP server for the solidtime application. The solidtime image uses Swoole as an HTTP server.
16
18
17
19
## Scheduler
18
20
19
-
`CONTAINER_MODE=scheduler`
21
+
```bash
22
+
CONTAINER_MODE=scheduler
23
+
```
20
24
21
25
The scheduler mode starts the Laravel scheduler. The scheduler is used to run scheduled tasks like sending reminders, similar to running cronjobs.
22
26
23
27
## Worker
24
28
25
-
`CONTAINER_MODE=worker`
29
+
```bash
30
+
CONTAINER_MODE=worker
31
+
```
26
32
27
33
The worker mode starts the Laravel Queue Worker. It is used to process asynchronous tasks like sending emails, when `QUEUE_CONNECTION` is set to `database`.
Copy file name to clipboardExpand all lines: docs/self-hosting/guides/docker.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ sidebar_position: 1
4
4
# Docker
5
5
6
6
This guide will help you to deploy solidtime using Docker and Docker Compose.
7
+
It uses our official Docker images that are available on [Docker Hub](https://hub.docker.com/r/solidtime/solidtime).
7
8
We have a repository with some example configurations for Docker Compose. You can find it [here](https://github.com/solidtime-io/self-hosting-examples).
Copy file name to clipboardExpand all lines: docs/self-hosting/intro.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,11 @@ This guide is for users who want to learn how to self-host solidtime.
9
9
10
10
If you have problems with the self-hosting guide, please open an issue on [GitHub](https://github.com/solidtime-io/solidtime/issues) or join our [Discord server](https://discord.gg/Wd7pNH5S64).
11
11
12
-
## Docker image
12
+
## Getting Started
13
13
14
-
We provide a Docker image for solidtime. You can find the Docker image on [Docker Hub](https://hub.docker.com/r/solidtime/solidtime).
14
+
We currently provide a detailed guide on how to deploy solidtime using Docker/Docker Compose.
15
+
16
+
You can find the guide [here](/self-hosting/guides/docker).
0 commit comments