Skip to content

Instantly share code, notes, and snippets.

@berkayakcay
Created June 5, 2019 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berkayakcay/7ed58a642dc88ea158e83d9c8edccd29 to your computer and use it in GitHub Desktop.
Save berkayakcay/7ed58a642dc88ea158e83d9c8edccd29 to your computer and use it in GitHub Desktop.
Run multiple service in docker container - supervisor configuration file
[supervisord]
nodaemon=true
[program:java]
command=java -jar /ext/second-service.jar -DFOREGROUND
stderr_logfile=/var/run/java/err.log
stdout_logfile=/var/run/java/out.log
autorestart=false
[program:dotnet]
command=dotnet /app/MyApplication.dll --urls http://0.0.0.0:80
stderr_logfile=/var/run/dotnet/err.log
stdout_logfile=/var/run/dotnet/out.log
autorestart=false
[eventlistener:dotnet_exit]
command=/scripts/supervisor-kill-container.py
process_name=dotnet
events=PROCESS_STATE_EXITED
[inet_http_server]
port=*:9001
username=admin
password=admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment