<commit_before>mongodb:
  image: mongo:2.6
  volumes:
   - ../data/mongodb:/data/db

redis:
  image: redis:2.8
  volumes:
   - ../data/redis:/data

logstash:
  image: logstash
  command: logstash -f /usr/share/logstash/logstash.conf
  volumes:
  - ./logstash:/usr/share/logstash

kibana:
  build: kibana
  restart: always

elastic:
  image: elasticsearch:1.5
  volumes:
   - ../data/elastic:/usr/share/elasticsearch/data

postfix:
  image: catatnight/postfix
  environment:
  - maildomain=mail.sourcefabric.org
  - smtp_user=user:pwd

backend:
  build: ../server
  command: sh /opt/superdesk/scripts/fig_wrapper.sh honcho start
  environment:
   - MONGO_URI=mongodb://mongodb/test
   - PUBLICAPI_MONGO_URI=mongodb://mongodb/test
   - LEGAL_ARCHIVE_URI=mongodb://mongodb/test
   - ELASTICSEARCH_URL=http://elastic:9200
   - ELASTICSEARCH_INDEX
   - CELERY_BROKER_URL=redis://redis:6379/1
   - REDIS_URL=redis://redis:6379/1
   - LOG_SERVER_ADDRESS=logstash
   - LOG_SERVER_PORT=5555
   - AMAZON_ACCESS_KEY_ID
   - AMAZON_CONTAINER_NAME
   - AMAZON_REGION
   - AMAZON_SECRET_ACCESS_KEY
   - REUTERS_USERNAME
   - REUTERS_PASSWORD
   - MAIL_SERVER=postfix
   - MAIL_PORT=25
   - MAIL_USE_TLS=false
   - MAIL_USE_SSL=false
   - MAIL_USERNAME=user
   - MAIL_PASSWORD=<PASSWORD>
   - SENTRY_DSN
   - SUPERDESK_URL=http://127.0.0.1/api
   - SUPERDESK_CLIENT_URL=http://127.0.0.1
   - SUPERDESK_TESTING=True
   - TINEYE_API_URL
   - TINEYE_PUBLIC_KEY
   - TINEYE_SECRET_KEY
   - IZITRU_API_URL
   - IZITRU_PRIVATE_KEY
   - IZITRU_ACTIVATION_KEY
   - GRIS_API_KEY
   - GRIS_API_CX
   - USE_VERIFICATION_MOCK
  volumes:
   - ../results/server/unit:/opt/superdesk/results-unit/
   - ../results/server/behave:/opt/superdesk/results-behave/

frontend:
  build: ../client
  command: sh -c "grunt build --server='http://127.0.0.1/api' --ws='ws://127.0.0.1/ws' && nginx"
  volumes:
   - ../results/client/unit:/opt/superdesk-client/unit-test-results<commit_msg>quickfix(docker): set some variables to __EMPTY__<commit_after>mongodb:
  image: mongo:2.6
  volumes:
   - ../data/mongodb:/data/db

redis:
  image: redis:2.8
  volumes:
   - ../data/redis:/data

logstash:
  image: logstash
  command: logstash -f /usr/share/logstash/logstash.conf
  volumes:
  - ./logstash:/usr/share/logstash

kibana:
  build: kibana
  restart: always

elastic:
  image: elasticsearch:1.5
  volumes:
   - ../data/elastic:/usr/share/elasticsearch/data

postfix:
  image: catatnight/postfix
  environment:
  - maildomain=mail.sourcefabric.org
  - smtp_user=user:pwd

backend:
  build: ../server
  command: sh /opt/superdesk/scripts/fig_wrapper.sh honcho start
  environment:
   - MONGO_URI=mongodb://mongodb/test
   - PUBLICAPI_MONGO_URI=mongodb://mongodb/test
   - LEGAL_ARCHIVE_URI=mongodb://mongodb/test
   - ELASTICSEARCH_URL=http://elastic:9200
   - ELASTICSEARCH_INDEX
   - CELERY_BROKER_URL=redis://redis:6379/1
   - REDIS_URL=redis://redis:6379/1
   - LOG_SERVER_ADDRESS=logstash
   - LOG_SERVER_PORT=5555
   - AMAZON_ACCESS_KEY_ID
   - AMAZON_CONTAINER_NAME
   - AMAZON_REGION
   - AMAZON_SECRET_ACCESS_KEY
   - REUTERS_USERNAME
   - REUTERS_PASSWORD
   - MAIL_SERVER=postfix
   - MAIL_PORT=25
   - MAIL_USE_TLS=false
   - MAIL_USE_SSL=false
   - MAIL_USERNAME=user
   - MAIL_PASSWORD=<PASSWORD>
   - SENTRY_DSN
   - SUPERDESK_URL=http://127.0.0.1/api
   - SUPERDESK_CLIENT_URL=http://127.0.0.1
   - SUPERDESK_TESTING=True
   - TINEYE_API_URL=__EMPTY__
   - TINEYE_PUBLIC_KEY
   - TINEYE_SECRET_KEY
   - IZITRU_API_URL=__EMPTY__
   - IZITRU_PRIVATE_KEY
   - IZITRU_ACTIVATION_KEY
   - GRIS_API_KEY
   - GRIS_API_CX
   - USE_VERIFICATION_MOCK=__EMPTY__
  volumes:
   - ../results/server/unit:/opt/superdesk/results-unit/
   - ../results/server/behave:/opt/superdesk/results-behave/

frontend:
  build: ../client
  command: sh -c "grunt build --server='http://127.0.0.1/api' --ws='ws://127.0.0.1/ws' && nginx"
  volumes:
   - ../results/client/unit:/opt/superdesk-client/unit-test-results
{'fraction_non_alphanumeric': 0.12891809908998988, 'fraction_numerical': 0.025278058645096056, 'mean_word_length': 3.1304801670146136, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6370885', 'n_tokens_mistral': 1781, 'n_tokens_neox': 1669, 'n_words': 192}