Skip to content

Commit

Permalink
Merge pull request #2313 from amazeeio/documentation-updates-nodjs-php
Browse files Browse the repository at this point in the history
Documentation updates for Node.js and PHP
  • Loading branch information
Toby Bellwood authored Apr 9, 2021
2 parents 4e59576 + 4d023d7 commit a946e24
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
* [MariaDB](docker-images/mariadb/README.md)
* [MariaDB-Drupal](docker-images/mariadb/mariadb-drupal.md)
* [MongoDB](docker-images/mongodb.md)
* [Node.js](docker-images/nodejs.md)
* [NGINX](docker-images/nginx/README.md)
* [NGINX-Drupal](docker-images/nginx/nginx-drupal.md)
* [PHP-CLI](docker-images/php-cli/README.md)
Expand Down
27 changes: 27 additions & 0 deletions docs/docker-images/nodejs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Node.js

The [Lagoon `node` Docker image](https://github.com/uselagoon/lagoon-images/tree/main/images/node). Based on [the official PHP Alpine images](https://hub.docker.com/_/php/).

## Supported Versions

* 10 - End of Life (EOL) as of 2021-04-30
* 12
* 14

{% hint style="info" %}
We stop updating EOL Node.js images usually with the Lagoon release that comes after the officially communicated EOL date: https://nodejs.org/en/about/releases/.
{% endhint %}

## Lagoon adaptions
We ship 2 versions of Node.js images: the normal `node:version` image and the `node:version-builder`.

The builder variant of those images comes with additional tooling that is needed when you run Node.js builds. For a full list check out the [Dockerfile](https://github.com/uselagoon/lagoon-images/tree/main/images/node-builder).

The default exposed port of node containers is port `3000`.

## Environment Variables
Environment variables are meant to contain common information for the PHP container.

| Environment Variable | Default | Description |
|-----------------------------|---------|----------------------------------------------------------------------|
| `LAGOON_LOCALDEV_HTTP_PORT` | 3000 | tells the local development environment on which port we are running |
10 changes: 6 additions & 4 deletions docs/docker-images/php-fpm.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ This Dockerfile is intended to be used as a base for any `PHP` needs within Lago
* 7.2 \(available for compatibility, no longer officially supported\)
* 7.3 [\[Dockerfile\]](https://github.com/uselagoon/lagoon-images/blob/main/images/php-fpm/7.3.Dockerfile)
* 7.4 [\[Dockerfile\]](https://github.com/uselagoon/lagoon-images/blob/main/images/php-fpm/7.4.Dockerfile)
* 8.0 \(coming soon\)
* 8.0 [\[Dockerfile\]](https://github.com/uselagoon/lagoon-images/blob/main/images/php-fpm/8.0.Dockerfile)

All PHP versions use their own Dockerfiles.

{% hint style="info" %}
We stop updating End of Life (EOL) PHP images usually with the Lagoon release that comes after the officially communicated EOL date: https://www.php.net/supported-versions.php.
{% endhint %}

## Lagoon adaptions

This image is prepared to be used on Lagoon. There are therefore some things are already done:
Expand Down Expand Up @@ -52,9 +56,7 @@ Also, `php-fpm` error logging happens in `stderr`.
**💡 If you don't like any of these configs, you have three possibilities:**

1. If they are changeable via environment variables, use environment variables \(this is the preferred method, see [table of environment variables below](php-fpm.md#environment-variables)\).
2. Create your own `fpm-pool` config and set via `php_admin_value` and

`php_admin_flag`
2. Create your own `fpm-pool` config and set via `php_admin_value` and `php_admin_flag`.

1. Learn more about them in [`this documentation for Running PHP as an Apache module`](https://www.php.net/manual/en/configuration.changes.php). This documentation refers to Apache, but it is also the case for `php-fpm`\).

Expand Down

0 comments on commit a946e24

Please sign in to comment.