forked from Netflix/consoleme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-deploy.yaml
25 lines (25 loc) · 985 Bytes
/
docker-compose-deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
version: "3"
# Never use this in a production environment.
services:
consoleme-deploy:
build: .
ports:
# Serve ConsoleMe's backend (Python Tornado) port, which is used to serve the frontend when built
- "8081:8081"
environment:
- SETUPTOOLS_USE_DISTUTILS=stdlib
# Run commands to install Consoleme, run the service, and never exit in the event of failure (For dev debugging)
command: >
bash -c 'python consoleme/__main__.py'
consoleme-celery-deploy:
build: .
environment:
- SETUPTOOLS_USE_DISTUTILS=stdlib
- COLUMNS=80 # Needed for Celery: https://github.com/celery/celery/issues/5761
# Run Redis with ConsoleMe configuration
command: >
bash -c '
python scripts/retrieve_or_decode_configuration.py;
python scripts/initialize_dynamodb_oss.py;
python scripts/initialize_redis_oss.py --use_celery=true;
celery -A consoleme.celery.celery_tasks worker -l DEBUG -B -E --concurrency=8'