-
Notifications
You must be signed in to change notification settings - Fork 253
/
docker-compose-dockerhub.yaml
61 lines (61 loc) · 2.23 KB
/
docker-compose-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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "3"
# Never use this in a production environment.
services:
consoleme:
image: "consoleme/consoleme"
ports:
- "3000:3000"
- "8081:8081"
tty: true
stdin_open: true
volumes:
- ~/.aws:/root/.aws:cached
- ~/.ssh:/root/.ssh:cached
- ~/.config/consoleme:/etc/consoleme/
environment:
- CONFIG_LOCATION=${CONFIG_LOCATION:-/apps/consoleme/example_config/example_config_docker_development.yaml}
- EC2_REGION=${EC2_REGION:-us-east-1}
- SETUPTOOLS_USE_DISTUTILS=stdlib
# Run commands to install Consoleme, run the service, and never exit in the event of failure (For dev debugging)
# We're running `FORCE_COLOR=true yarn --cwd /apps/consoleme/ui/ start | cat` instead of
# `yarn --cwd /apps/consoleme/ui/ start` to prevent Yarn from clearing the console, as this affects how docker logs
# are displayed
command: >
bash -c '
python scripts/retrieve_or_decode_configuration.py;
pip install argh watchdog;
watchmedo auto-restart --recursive --pattern="*.py" --directory="." python consoleme/__main__.py &
FORCE_COLOR=true yarn --cwd /apps/consoleme/ui/ start | cat'
depends_on:
- consoleme-redis
- consoleme-dynamodb
links:
- consoleme-redis
- consoleme-dynamodb
consoleme-celery:
image: "consoleme/consoleme"
tty: true
stdin_open: true
volumes:
- ~/.aws:/root/.aws:cached
- ~/.ssh:/root/.ssh:cached
- ~/.config/consoleme:/etc/consoleme/
environment:
- CONFIG_LOCATION=${CONFIG_LOCATION:-/apps/consoleme/example_config/example_config_docker_development.yaml}
- EC2_REGION=${EC2_REGION:-us-east-1}
- 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;
celery -A consoleme.celery_tasks.celery_tasks worker -l DEBUG -B -E --concurrency=8
'
depends_on:
- consoleme-redis
- consoleme-dynamodb
links:
- consoleme-redis
- consoleme-dynamodb