2015-08-24 20:56:42 +03:00
|
|
|
worker: &worker
|
2015-09-16 13:03:47 +03:00
|
|
|
image: addons/olympia
|
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
|
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
|
2015-05-12 17:07:03 +03:00
|
|
|
- MYSQL_DATABASE='olympia'
|
2015-09-18 14:59:08 +03:00
|
|
|
- MYSQL_ROOT_PASSWORD='docker'
|
2015-10-30 20:21:04 +03:00
|
|
|
- OLYMPIA_SITE_URL
|
2015-08-07 08:36:40 +03:00
|
|
|
- PYTHONDONTWRITEBYTECODE=1
|
2015-09-18 14:59:08 +03:00
|
|
|
- PYTHONUNBUFFERED=1
|
|
|
|
- REDIS_LOCATION=redis:6379
|
|
|
|
- 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
|
2015-08-24 20:56:42 +03:00
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
2014-10-01 15:44:44 +04:00
|
|
|
|
2015-10-03 00:15:13 +03:00
|
|
|
nginx:
|
|
|
|
image: addons/addons-nginx
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
volumes:
|
|
|
|
- ./static:/srv/static
|
|
|
|
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
|
|
|
|
- MYSQL_DATABASE='olympia'
|
2014-10-01 15:44:44 +04:00
|
|
|
|
|
|
|
elasticsearch:
|
2015-05-12 17:07:03 +03:00
|
|
|
image: elasticsearch:1.3
|
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
|