Lucee and Devilbox/ Docker error

Hi,

I am trying to get Lucee working with Devilbox (Docker) and I really am a new to this sort of things. According to the Devilbox docs you can do this to by creating the following code in the docker-compose.override.yml:

services:
  # Your custom Docker image here:
  lucee:
    image: lucee/lucee52:latest
    command: start --insecure
    # Ensure the chosen ports are not occupied on the host system
    ports:
      - "${LOCAL_LISTEN_ADDR}26257:26257"
      - "${LOCAL_LISTEN_ADDR}8080:8080"
    networks:
      app_net:
        # Ensure to pick an IP address from docker-compose.yml network
        # that is not yet taken by other sevices
        ipv4_address: 172.16.238.201
    # (Optional) For ease of use always automatically start these:
    depends_on:
      - bind
      - php
      - httpd
  # End of first custom Docker image

This almost seem to work. But I get the error:

ERROR: for d93c0fb4627d_devilbox_lucee_1 Cannot start service lucee: OCI runtime create failed: container_linux.go:348: starting container process caused “exec: “start”: executable file not found in $PATH”: unknown

I am on OSX by the way.

Regards,

This looks really interesting, please keep us informed of your progress.

Is ‘command’ required for Lucee?

Looking at Solr as something similar, it does not have it

https://github.com/cytopia/devilbox/blob/master/compose/docker-compose.override.yml-solr

Also, what is on port 26257?

That means the executable in the command doesn’t exist. For Lucee it’s already specified in the base image so you don’t need to override this in a Docker Compose config.

You’ll also want to use port 8888, that’s what Lucee uses for all distributions (express, installer, and Docker images).

1 Like

Hi,

I am totally leaving devilbox and try to get things up and running with Docker (Kitematic) with the lucee-nginx image, only seems I can’t get the nginx config files to work.

Thanks for all the help…

It was quite straight forward actually,

Just copy paste the following in the override.xml

## IMPORTANT: The version must match the version of docker-compose.yml
---
version: '2.3'
services:
  lucee:
    image: lucee/lucee:latest
    # Ensure the chosen ports are not occupied on the host system
    ports:
      - "${LOCAL_LISTEN_ADDR}8888:8888"
    networks:
      app_net:
        # Ensure to pick an IP address from docker-compose.yml network
        # that is not yet taken by other sevices
        ipv4_address: 172.16.238.200
    # (Optional) For ease of use always automatically start these:
    depends_on:
      - bind
      - mysql
1 Like