forked from gitroomhq/postiz-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into configuration-checking
- Loading branch information
Showing
12 changed files
with
180 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
## Controlling container services | ||
The environment variable POSTIZ_APPS defaults to "", which means that all | ||
services will be started in a single container. However, you can only start | ||
specific services within the docker container by changing this environement variable. | ||
When the environment variable `POSTIZ_APPS` is not set, or is set to an empty string, all | ||
services will be started in a single container. This is normally fine for small, personal deployments. | ||
|
||
For most deployments, starting all services is fine. To scale out, you might want | ||
to start individual containers for "frontend", "backend", "worker" and "cron". | ||
However, you can only start specific services within the docker container by changing this environement variable. | ||
|
||
If you need to scale, you can experiement with having multiple containers defined like; | ||
- Frontend only: `POSTIZ_APPS="frontend"` | ||
- Backend only: `POSTIZ_APPS="backend"` | ||
- Worker and Cron only: `POSTIZ_APPS="worker cron"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Set environment variables | ||
|
||
Postiz configuration is entirely via environment variables. | ||
|
||
When using Postiz container images, you can specify the environment variables when you create the container (`docker create -e DATABASE_URL=...`), but this might be | ||
a bit tedious, as Postiz requires quite a few variables set to startup. | ||
|
||
It is recommended to use a `postiz.env` file, which the Postiz containers look for in /config. Docker will automatically create this file for you on a | ||
docker volume the first time you start up Postiz. The default container images will copy the `/config/postiz.env` to `/apps/.env` on startup. Like with | ||
any environment variables, if you change them, you must restart the application for the changes to take effect. | ||
|
||
An example file of the most used configuration settings can be found here; [example postiz.env file](https://raw.githubusercontent.com/gitroomhq/postiz-app/main/.env.example) | ||
|
||
There is also a [configuration reference](/configuration/reference) page that goes into more detail. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.