No Entrypoint. The Cmd is /sbin/my_init.
So when a container runs from that image, the /sbin/my_init command/script runs.
Now I brought up a container from that image and got a shell prompt. I then searched for the create_admin and setup_database commands/scripts. They are both in /usr/local/bin
So what you can do is build your own customer image from the jarischaefer/docker-librenms:latest docker image and then replace the jarischaefer/docker-librenms:latest docker image in your docker-compose.yml with your custom image.
Create a Dockerfile, the FROM statement specifies thejarischaefer/docker-librenms:latestdocker image. The code aCMDstatement in theDockerfileto run all three commands:/sbin/my_init && /usr/local/bin/setup_database && /usr/local/bin/create_admin`
Now I did not do it myself. Not sure if those last 2 commands/scripts “prompt” or accept command arguments.
You will have to run them manually and see what they do.
So what you should do first is run your docker-compose as it is. Once the stack comes up run a docker container exec command into the librenms container and bring up a shell prompt (just like I did previously).
Then run those 2 commands manually and see what happens.