diff --git a/docker/Dockerfile_Process b/docker/Dockerfile_Process index 013923b3..62d6521c 100644 --- a/docker/Dockerfile_Process +++ b/docker/Dockerfile_Process @@ -14,6 +14,9 @@ # * InstallMediaPush: Set this variable to 'true' to enable headless Chrome on the server for recording and streaming web pages back to Ant Media Server. # --build-arg InstallMediaPush='true' # +# * Supervisor Configuration (Optional) +# If you want to use Supervisor to manage the Ant Media Server process, you can uncomment the Supervisor-related section in the Dockerfile. +# With this configuration, you can easily restart, stop the service, or run the `enable_ssl.sh` script for Ant Media Server. FROM ubuntu:22.04 @@ -92,4 +95,23 @@ RUN if [ "true" = "$InstallMediaPush" ]; then \ # Example usage: ./start.sh -e 60 +##################### supervisor configuration ############################## +#RUN apt-get update && apt-get install -y supervisor +# +#RUN echo '[supervisord]\n\ +#nodaemon=true\n\ +#\n\ +#[program:antmedia]\n\ +#command=/usr/local/antmedia/start.sh\n\ +#autostart=true\n\ +#autorestart=true\n\ +#user=antmedia\n\ +#stdout_logfile_maxbytes = 0\n\ +#stderr_logfile_maxbytes = 0\n\ +#stdout_logfile=/dev/stdout\n\ +#stderr_logfile=/dev/stderr' > /etc/supervisor/supervisord.conf +# +#ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"] +############################################################################## + ENTRYPOINT ["/usr/local/antmedia/start.sh"]