build: update to a single docker file for one click deploys

This commit is contained in:
pablohashescobar 2022-12-15 02:37:26 +05:30
parent 6638f13235
commit f9b8ee0d50
2 changed files with 171 additions and 0 deletions

View file

@ -0,0 +1,33 @@
[supervisord]
nodaemon=true
[program:frontend]
directory=/app
command= node apps/app/server.js
autostart=true
autorestart=true
stderr_logfile=/dev/stdout
stderr_logfile_maxbytes = 0
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes = 0
[program:backend]
directory=/app
command= gunicorn plane.wsgi -k gthread --workers 8 --bind 0.0.0.0:8000 --config gunicorn.config.py --max-requests 10000 --max-requests-jitter 1000 --access-logfile -
autostart=true
autorestart=true
stderr_logfile=/dev/stdout
stderr_logfile_maxbytes = 0
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes = 0
[program:worker]
directory=/app
command= python manage.py rqworker
autostart=true
autorestart=true
stderr_logfile=/dev/stdout
stderr_logfile_maxbytes = 0
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes = 0