Sign inSign up

humu1us/micro

By humu1us

Updated over 7 years ago

A platform to create microservices available through Celery and Rest API

Image
0

739

humu1us/micro repository overview

2.0.0 (2.0/python3.6/Dockerfile) 2.0.0 (2.0/python3.6-alpine/Dockerfile) 2.0.0 (2.0/python3.6-alpine3.7/Dockerfile) 2.0.0 (2.0/python3.6-stretch/Dockerfile)

Quick reference
How to use this image

Directories

This image uses some directories by default to storing plugins, log, and the Celery PID files

  • Plugins /etc/micro/plugins
  • Logs /var/log/micro
  • Celery PIDs /var/run/micro

Environment variables

Micro can use environment variables to set differents options:

MICRO_CONFIG_FILE        # config file location: /path/to/config/config.json
MICRO_BIND               # Gunicorn socket bind (host:port)
MICRO_BROKER_URL         # broker url: ampq://user:pass@host:port//
MICRO_CELERY             # plugins available through Celery
MICRO_CELERY_WORKERS     # number of Celery workers (integer number)
MICRO_GUNICORN           # plugins available through API Rest (Gunicorn)
MICRO_GUNICORN_WORKERS   # number of Gunicorn workers (integer number)
MICRO_HOSTNAME           # workers hostname
MICRO_LOG_FILE_NAME      # log file name: micro.log
MICRO_LOG_FOLDER_PATH    # path to log folder: /path/to/log/folder
MICRO_LOG_LEVEL          # minimun log level to write: DEBUG, INFO, WARNING, ERROR, CRITICAL or FATAL
MICRO_PID_FOLDER_PATH    # path to Celery pid folder: /path/to/pid/folder
MICRO_PLUGIN_PATH        # path to plugin folder: /path/to/plugin/folder
MICRO_TASK_QUEUES        # queue name used

Tag summary

Content type

Image

Digest

Size

345.4 MB

Last updated

over 7 years ago

docker pull humu1us/micro:3.1.0-python3.6-stretch