<commit_before>version: '2.2'
services:
  backend:
    build: backend
    init: true
    command: scripts/wait-for-it.sh --strict postgres:5432 -- scripts/wait-for-it.sh --strict rabbitmq:5672 -- python manage.py docker_start
    ports:
      - 8000:8000
    links:
      - rabbitmq
      - postgres
      - memcache
    volumes:
      - ./backend/edegal:/usr/src/app/edegal
      - media:/usr/src/app/media
    environment:
      DEBUG: 1
      PYTHONUNBUFFERED: 1
      DATABASE_URL: psql://edegal:edegal@postgres/edegal
      ALLOWED_HOSTS: '*'
      BROKER_URL: amqp://guest:guest@rabbitmq/
      CACHE_URL: memcache://memcache
  worker:
    build: backend
    init: true
    command: scripts/wait-for-it.sh --strict postgres:5432 -- scripts/wait-for-it.sh --strict rabbitmq:5672 -- celery -A edegal_site.celery:app worker
    links:
      - rabbitmq
      - postgres
      - memcache
    volumes:
      - ./backend/edegal:/usr/src/app/edegal
      - media:/usr/src/app/media
    environment:
      DEBUG: 1
      PYTHONUNBUFFERED: 1
      DATABASE_URL: psql://edegal:edegal@postgres/edegal
      ALLOWED_HOSTS: '*'
      BROKER_URL: amqp://guest:guest@rabbitmq/
      CACHE_URL: memcache://memcache
  frontend:
    build: frontend
    init: true
    ports:
      - 3000:3000
    links:
      - backend
    volumes:
      - ./frontend/src:/usr/src/app/src
    environment:
      EDEGAL_BACKEND_URL: http://backend:8000
      REACT_APP_EDEGAL_LOGIN_URL: http://localhost:8000/admin/
  postgres:
    image: postgres
    volumes:
      - postgres-data:/var/lib/postgresql/data
      - ./conikuvat-20180917103659.sql:/docker-entrypoint-initdb.d/conikuvat.sql
    environment:
      POSTGRES_USER: edegal
      POSTGRES_PASSWORD: <PASSWORD>
      POSTGRES_DB: edegal
  rabbitmq:
    image: rabbitmq
  memcache:
    image: memcached
volumes:
  postgres-data: {}<commit_msg>clean up docker-compose.yml<commit_after>version: '2.2'
services:
  backend:
    build: backend
    init: true
    command: scripts/wait-for-it.sh --strict postgres:5432 -- scripts/wait-for-it.sh --strict rabbitmq:5672 -- python manage.py docker_start
    ports:
      - 8000:8000
    links:
      - rabbitmq
      - postgres
      - memcache
    volumes:
      - ./backend/edegal:/usr/src/app/edegal
      - media:/usr/src/app/media
    environment:
      DEBUG: 1
      PYTHONUNBUFFERED: 1
      DATABASE_URL: psql://edegal:edegal@postgres/edegal
      ALLOWED_HOSTS: '*'
      BROKER_URL: amqp://guest:guest@rabbitmq/
      CACHE_URL: memcache://memcache
  worker:
    build: backend
    init: true
    command: scripts/wait-for-it.sh --strict postgres:5432 -- scripts/wait-for-it.sh --strict rabbitmq:5672 -- celery -A edegal_site.celery:app worker
    links:
      - rabbitmq
      - postgres
      - memcache
    volumes:
      - ./backend/edegal:/usr/src/app/edegal
      - media:/usr/src/app/media
    environment:
      DEBUG: 1
      PYTHONUNBUFFERED: 1
      DATABASE_URL: psql://edegal:edegal@postgres/edegal
      ALLOWED_HOSTS: '*'
      BROKER_URL: amqp://guest:guest@rabbitmq/
      CACHE_URL: memcache://memcache
  frontend:
    build: frontend
    init: true
    ports:
      - 3000:3000
    links:
      - backend
    volumes:
      - ./frontend/src:/usr/src/app/src
    environment:
      EDEGAL_BACKEND_URL: http://backend:8000
      REACT_APP_EDEGAL_LOGIN_URL: http://localhost:8000/admin/
  postgres:
    image: postgres
    volumes:
      - postgres-data:/var/lib/postgresql/data
    environment:
      POSTGRES_USER: edegal
      POSTGRES_PASSWORD: <PASSWORD>
      POSTGRES_DB: edegal
  rabbitmq:
    image: rabbitmq
  memcache:
    image: memcached
volumes:
  postgres-data: {}
{'fraction_non_alphanumeric': 0.11537414965986395, 'fraction_numerical': 0.028843537414965988, 'mean_word_length': 2.3236889692585896, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '305526', 'n_tokens_mistral': 1452, 'n_tokens_neox': 1295, 'n_words': 223}