2015-08-24 20:56:42 +03:00
|
|
|
worker: &worker
|
2016-02-10 00:16:49 +03:00
|
|
|
image: addons/addons-server
|
2015-10-28 00:18:19 +03:00
|
|
|
command: supervisord -n -c /code/docker/supervisor-celery.conf
|
2015-08-07 08:36:40 +03:00
|
|
|
entrypoint: ./scripts/start-docker.sh
|
2014-10-01 15:44:44 +04:00
|
|
|
volumes:
|
|
|
|
- .:/code
|
|
|
|
links:
|
2015-08-24 20:56:42 +03:00
|
|
|
- memcached
|
|
|
|
- mysqld
|
|
|
|
- elasticsearch
|
|
|
|
- redis
|
|
|
|
- rabbitmq
|
2014-10-01 15:44:44 +04:00
|
|
|
environment:
|
2015-09-18 14:59:08 +03:00
|
|
|
- BROKER_URL=amqp://olympia:olympia@rabbitmq/olympia
|
2016-05-13 19:37:15 +03:00
|
|
|
- CELERY_RESULT_BACKEND=redis://redis:6379/1
|
2014-10-01 15:44:44 +04:00
|
|
|
- DATABASE_URL=mysql://root:@mysqld/olympia
|
|
|
|
- ELASTICSEARCH_LOCATION=elasticsearch:9200
|
2015-09-18 14:59:08 +03:00
|
|
|
- MEMCACHE_LOCATION=memcached:11211
|
2016-02-24 19:45:35 +03:00
|
|
|
- MYSQL_DATABASE=olympia
|
|
|
|
- MYSQL_ROOT_PASSWORD=docker
|
2016-06-02 10:37:03 +03:00
|
|
|
- OLYMPIA_SITE_URL=http://olympia.dev
|
2015-08-07 08:36:40 +03:00
|
|
|
- PYTHONDONTWRITEBYTECODE=1
|
2015-09-18 14:59:08 +03:00
|
|
|
- PYTHONUNBUFFERED=1
|
2016-03-15 17:22:16 +03:00
|
|
|
- RECURSION_LIMIT=10000
|
2016-02-23 16:52:30 +03:00
|
|
|
- REDIS_LOCATION=redis://redis:6379/0?socket_timeout=0.5
|
2015-09-18 14:59:08 +03:00
|
|
|
- TERM=xterm-256color
|
2015-08-24 20:56:42 +03:00
|
|
|
|
|
|
|
web:
|
|
|
|
<<: *worker
|
2015-09-18 14:59:08 +03:00
|
|
|
command: supervisord -n -c /code/docker/supervisor.conf
|
2014-10-01 15:44:44 +04:00
|
|
|
|
2015-10-03 00:15:13 +03:00
|
|
|
nginx:
|
|
|
|
image: addons/addons-nginx
|
|
|
|
volumes:
|
|
|
|
- ./static:/srv/static
|
2016-01-12 17:46:34 +03:00
|
|
|
- ./site-static:/srv/site-static
|
2015-10-03 00:15:13 +03:00
|
|
|
links:
|
|
|
|
- web:web
|
|
|
|
|
2014-10-01 15:44:44 +04:00
|
|
|
memcached:
|
2015-12-03 01:33:52 +03:00
|
|
|
image: memcached:1.4
|
2014-10-01 15:44:44 +04:00
|
|
|
|
|
|
|
mysqld:
|
2015-10-26 18:38:36 +03:00
|
|
|
image: mysql:5.6
|
2015-05-12 17:07:03 +03:00
|
|
|
environment:
|
|
|
|
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
2016-02-24 19:45:35 +03:00
|
|
|
- MYSQL_DATABASE=olympia
|
2014-10-01 15:44:44 +04:00
|
|
|
|
|
|
|
elasticsearch:
|
2016-06-20 20:31:26 +03:00
|
|
|
image: elasticsearch:1.6
|
2014-10-01 15:44:44 +04:00
|
|
|
|
|
|
|
redis:
|
2015-12-03 01:33:52 +03:00
|
|
|
image: redis:2.8
|
2015-08-24 20:56:42 +03:00
|
|
|
|
|
|
|
rabbitmq:
|
2015-12-03 01:33:52 +03:00
|
|
|
image: rabbitmq:3.5
|
2015-08-24 20:56:42 +03:00
|
|
|
hostname: olympia
|
|
|
|
expose:
|
2015-12-10 14:21:42 +03:00
|
|
|
- "5672"
|
2015-08-24 20:56:42 +03:00
|
|
|
environment:
|
|
|
|
- RABBITMQ_DEFAULT_USER=olympia
|
|
|
|
- RABBITMQ_DEFAULT_PASS=olympia
|
|
|
|
- RABBITMQ_DEFAULT_VHOST=olympia
|