-
Notifications
You must be signed in to change notification settings - Fork 253
/
docker-compose-deploy-dockerhub.yaml
29 lines (29 loc) · 1.3 KB
/
docker-compose-deploy-dockerhub.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
26
27
28
29
version: "3"
# Never use this in a production environment.
services:
consoleme-deploy:
image: "consoleme/consoleme"
ports:
# Serve ConsoleMe's backend (Python Tornado) port, which is used to serve the frontend when built
- "8081:8081"
environment:
- SETUPTOOLS_USE_DISTUTILS=stdlib
- CONFIG_LOCATION=${CONFIG_LOCATION:-/apps/consoleme/example_config/example_config_docker_development.yaml}
- EC2_REGION=${EC2_REGION:-us-east-1}
# 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:
image: "consoleme/consoleme"
environment:
- SETUPTOOLS_USE_DISTUTILS=stdlib
- CONFIG_LOCATION=${CONFIG_LOCATION:-/apps/consoleme/example_config/example_config_docker_development.yaml}
- EC2_REGION=${EC2_REGION:-us-east-1}
- 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;
celery -A consoleme.celery_tasks.celery_tasks worker -l DEBUG -B -E --concurrency=8'