mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
map docker container ports to allow usage of celery.contrib.rdb
http://docs.celeryproject.org/en/latest/reference/celery.contrib.rdb.html allows you to remotely debug running celery tasks with: from celery.contrib import rdb rdb.set_trace() this will bind a remote Python debugger on a random TCP port between 6899-6999, which you can telnet into for remote task debugging
This commit is contained in:
@@ -9,11 +9,13 @@ services:
|
|||||||
RABBITMQ_USER: guest
|
RABBITMQ_USER: guest
|
||||||
RABBITMQ_PASS: guest
|
RABBITMQ_PASS: guest
|
||||||
RABBITMQ_VHOST: /
|
RABBITMQ_VHOST: /
|
||||||
|
CELERY_RDB_HOST: 0.0.0.0
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
- "5555:5555"
|
- "5555:5555"
|
||||||
- "8013:8013"
|
- "8013:8013"
|
||||||
- "8043:8043"
|
- "8043:8043"
|
||||||
|
- "6899-6999:6899-6999" # default port range for celery.contrib.rdb
|
||||||
links:
|
links:
|
||||||
- postgres
|
- postgres
|
||||||
- memcached
|
- memcached
|
||||||
|
|||||||
Reference in New Issue
Block a user