2017-10-05 14:14:08 +03:00
|
|
|
version: "2"
|
2015-08-24 20:56:42 +03:00
|
|
|
|
2017-10-05 14:14:08 +03:00
|
|
|
services:
|
|
|
|
worker: &worker
|
|
|
|
image: addons/addons-server
|
|
|
|
command: supervisord -n -c /code/docker/supervisor-celery.conf
|
|
|
|
entrypoint: ./scripts/start-docker.sh
|
|
|
|
volumes:
|
|
|
|
- .:/code
|
|
|
|
environment:
|
2017-10-16 12:16:41 +03:00
|
|
|
- CELERY_BROKER_URL=amqp://olympia:olympia@rabbitmq/olympia
|
2017-10-05 14:14:08 +03:00
|
|
|
- CELERY_RESULT_BACKEND=redis://redis:6379/1
|
|
|
|
- DATABASE_URL=mysql://root:@mysqld/olympia
|
|
|
|
- ELASTICSEARCH_LOCATION=elasticsearch:9200
|
|
|
|
- MEMCACHE_LOCATION=memcached:11211
|
|
|
|
- MYSQL_DATABASE=olympia
|
|
|
|
- MYSQL_ROOT_PASSWORD=docker
|
|
|
|
- OLYMPIA_SITE_URL=http://olympia.dev
|
|
|
|
- PYTHONDONTWRITEBYTECODE=1
|
|
|
|
- PYTHONUNBUFFERED=1
|
|
|
|
- RECURSION_LIMIT=10000
|
|
|
|
- REDIS_LOCATION=redis://redis:6379/0?socket_timeout=0.5
|
|
|
|
- TERM=xterm-256color
|
|
|
|
extra_hosts:
|
|
|
|
- "olympia.dev:127.0.0.1"
|
2014-10-01 15:44:44 +04:00
|
|
|
|
2017-10-05 14:14:08 +03:00
|
|
|
web:
|
|
|
|
<<: *worker
|
|
|
|
command: supervisord -n -c /code/docker/supervisor.conf
|
2015-10-03 00:15:13 +03:00
|
|
|
|
2017-10-05 14:14:08 +03:00
|
|
|
nginx:
|
|
|
|
image: addons/addons-nginx
|
|
|
|
volumes:
|
|
|
|
- ./static:/srv/static
|
|
|
|
- ./site-static:/srv/site-static
|
2018-01-09 14:49:26 +03:00
|
|
|
- ./user-media/:/srv/user-media
|
2014-10-01 15:44:44 +04:00
|
|
|
|
2017-10-05 14:14:08 +03:00
|
|
|
memcached:
|
|
|
|
image: memcached:1.4
|
2014-10-01 15:44:44 +04:00
|
|
|
|
2017-10-05 14:14:08 +03:00
|
|
|
mysqld:
|
|
|
|
image: mysql:5.7
|
|
|
|
environment:
|
|
|
|
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
|
|
|
- MYSQL_DATABASE=olympia
|
2014-10-01 15:44:44 +04:00
|
|
|
|
2017-10-05 14:14:08 +03:00
|
|
|
elasticsearch:
|
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:5.4.1
|
|
|
|
environment:
|
|
|
|
- xpack.security.enabled=false
|
|
|
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
|
|
mem_limit: 2g
|
2015-08-24 20:56:42 +03:00
|
|
|
|
2017-10-05 14:14:08 +03:00
|
|
|
redis:
|
|
|
|
image: redis:2.8
|
|
|
|
|
|
|
|
rabbitmq:
|
|
|
|
image: rabbitmq:3.5
|
|
|
|
hostname: olympia
|
|
|
|
expose:
|
|
|
|
- "5672"
|
|
|
|
environment:
|
|
|
|
- RABBITMQ_DEFAULT_USER=olympia
|
|
|
|
- RABBITMQ_DEFAULT_PASS=olympia
|
|
|
|
- RABBITMQ_DEFAULT_VHOST=olympia
|
|
|
|
|
2017-11-13 19:29:57 +03:00
|
|
|
autograph:
|
|
|
|
image: mozilla/autograph:2.0.5
|
|
|
|
|
2017-10-05 14:14:08 +03:00
|
|
|
selenium-firefox:
|
|
|
|
image: selenium/standalone-firefox-debug
|
|
|
|
expose:
|
|
|
|
- "4444"
|
|
|
|
ports:
|
|
|
|
- "5900"
|
|
|
|
shm_size: 2g
|
|
|
|
links:
|
|
|
|
- "web:olympia.dev"
|