Lucee in Docker container 502 on start of container

I set up a Docker container running nginx on Ubuntu 22, and installed Lucee 5.4.6.9 myself (rather than using an official Lucee docker image) using the installer.

During the setup, I elected the ‘start Lucee at startup’ option, but when I start up my container, I get 502 errors when attempting to hit my site. When I check “service --status-all”, the system indicates that lucee_ctl is running. However, when I run “service lucee_ctrl restart”, it resolves the 502 error.

Any idea why it doesn’t work without a restart after starting the container, and what I can do to resolve it?

Thanks

Okay, I solved it myself. My docker container has a shell script at /docker-entrypoint.d that runs when the container starts up. Lucee wasn’t starting at all, so I modified that file and added a line to start the service before it exits.