Merge pull request #1413 from J0WI/pfxadm-docs-tweaks

Update PostfixAdmin docs
This commit is contained in:
Tianon Gravi 2020-06-23 17:05:56 -07:00 committed by GitHub
commit 613b7e6ffa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 19 deletions

View File

@ -48,26 +48,12 @@ Then, access it via `http://localhost:8080` or `http://host-ip:8080` in a browse
## Existing config.local.php ## Existing config.local.php
```console ```console
$ docker run --name some-%%REPO%% -p 8080:80 %%image%% $ docker run -v /local/path/to/config.local.php:/var/www/html/config.local.php \
$ docker run --name some-%%REPO%% -v /local/path/to/config.local.php:/var/www/html/config.local.php -p 8080:80 %%IMAGE%% --name some-%%REPO%% \
-p 8080:80 \
%%IMAGE%%
``` ```
## Image Variants
The following variants are currently provided:
### apache
This starts an Apache webserver with PHP, so you can use `postfixadmin` out of the box.
### fpm-alpine
This image has a very small footprint. It is based on Alpine Linux and starts only a PHP FPM process. Use this variant if you already have a seperate webserver. If you need more tools, that are not available on Alpine Linux, use the `fpm` image instead.
### fpm
This image starts only a PHP FPM container. Use this variant if you already have a seperate webserver.
%%STACK%% %%STACK%%
Run docker stack deploy -c stack.yml %%REPO%% (or docker-compose -f stack.yml up), wait for it to initialize completely, and visit http://swarm-ip:8080, http://localhost:8080, or http://host-ip:8080 (as appropriate). Run docker stack deploy -c stack.yml %%REPO%% (or docker-compose -f stack.yml up), wait for it to initialize completely, and visit http://swarm-ip:8080, http://localhost:8080, or http://host-ip:8080 (as appropriate).

View File

@ -5,7 +5,7 @@ services:
image: mysql:5.7 image: mysql:5.7
restart: always restart: always
environment: environment:
MYSQL_ROOT_PASSWORD: notSecureChangeMe MYSQL_RANDOM_ROOT_PASSWORD: 1
MYSQL_DATABASE: postfixadmin MYSQL_DATABASE: postfixadmin
MYSQL_USER: postfixadmin MYSQL_USER: postfixadmin
MYSQL_PASSWORD: example MYSQL_PASSWORD: example

View File

@ -0,0 +1,3 @@
### apache
This starts an Apache webserver with PHP, so you can use `postfixadmin` out of the box.

View File

@ -0,0 +1,3 @@
### fpm-alpine
This image has a very small footprint. It is based on Alpine Linux and starts only a PHP FPM process. Use this variant if you already have a seperate webserver. If you need more tools, that are not available on Alpine Linux, use the `fpm` image instead.

View File

@ -0,0 +1,3 @@
### fpm
This image starts only a PHP FPM container. Use this variant if you already have a seperate webserver.