This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:3.8-slim-buster | |
| RUN apt-get clean && \ | |
| apt-get update && \ | |
| apt-get install -y nginx smbclient default-libmysqlclient-dev \ | |
| gcc python3-cffi libcairo2 libpango-1.0-0 libpangocairo-1.0-0 \ | |
| libgdk-pixbuf2.0-0 libffi-dev shared-mime-info | |
| # set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Names of nodes to start | |
| CELERYD_NODES="WORKER_1 WORKER_2 WORKER_3 WORKER_4" | |
| # Absolute or relative path to the 'celery' command: | |
| CELERY_BIN="/usr/local/bin/celery" | |
| # App instance to use | |
| CELERY_APP="api" | |
| # Where to chdir at start. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -e | |
| # ============================================ | |
| # celeryd - Starts the Celery worker daemon. | |
| # ============================================ | |
| # | |
| # :Usage: /etc/init.d/celeryd {start|stop|force-reload|restart|try-restart|status} | |
| # :Configuration file: /etc/default/celeryd | |
| # | |
| # See http://docs.celeryproject.org/en/latest/userguide/daemonizing.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| server_name YOUR_SERVER_NAME; | |
| charset utf-8; | |
| client_max_body_size 75M; | |
| location /static/ { | |
| alias /PROJECT_FOLDER/static/; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [uwsgi] | |
| base = /PROJECT_FOLDER | |
| chdir = %(base) | |
| home = %(base) | |
| pidfile= %(base)/myproject.pid | |
| pythonpath= /usr/local | |
| uid = www-data | |
| gid = www-data | |
| module = api.wsgi:application # path to wsgy.py file | |
| socket = :8000 |