I would like to deploy a spring boot application into a docker container. I had created the base image using
Alpine Linux. My old configuration runs a service on
Red Hat under this path
I am wondering if this is a good approach to create the service into the container or leave the management responsibility of the service to the Docker composer.
Here is the service in Redhat:
[Unit] Description=service description [Service] WorkingDirectory=dir ExecStart=/bin/bash -c "java -Xmx512m -jar ms-service-0.0.1.jar" Restart=on-failure [Install]
I have in my Dockerfile