Skip to content

Node.js#

The Lagoon ruby Docker image. Based on the official Python Alpine images.

Supported Versions#

  • 3.0 Dockerfile (Security Support until March 2024) - uselagoon/ruby-3.0
  • 3.1 Dockerfile (Security Support until March 2025) - uselagoon/ruby-3.1

Note:

We stop updating and publishing EOL Ruby images usually with the Lagoon release that comes after the officially communicated EOL date: https://www.ruby-lang.org/en/downloads/releases/. Previous versions will remain available.

Lagoon adaptions#

The default exposed port of ruby containers is port 3000.

Lagoon has no "pre-defined" type for Ruby services, they should be configured with the lagoon.type: generic and a port set with lagoon.port: 3000

docker-compose.yml snippet#

```yaml title="docker-compose.yml snippet"
    ruby:
        build:
            # this configures a build from a Dockerfile in the root folder
            context: .
            dockerfile: Dockerfile
        labels:
            # tells Lagoon this is a generic service, configured to expose port 3000
            lagoon.type: generic
            lagoon.port: 3000
        ports:
            # local development only
            # this exposes the port 3000 with a random local port - find it with docker-compose port ruby 3000
            - "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