<commit_before>version: "3.7"

services:
  postgres:
    image: postgres:12
    volumes:
      - postgres:/var/lib/postgresql/data/
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: <PASSWORD>
    restart: unless-stopped

  redis:
    image: redis:alpine
    volumes:
      - redis:/data/
    restart: unless-stopped

  app:
    image: docker.pkg.github.com/floriandejonckheere/headbanger/headbanger-app:v0.4.0-test2
    depends_on:
      - postgres
      - redis
    env_file:
      - .env.production
    restart: unless-stopped

  web:
    image: docker.pkg.github.com/floriandejonckheere/headbanger/headbanger-web:v0.4.0-test2
    ports:
      - "81:80"
    volumes:
      - nginx:/cache/
      - ./client.pem:/etc/nginx/conf.d/client.pem
      - ./client.key:/etc/nginx/conf.d/client.key
    depends_on:
      - app
    env_file:
      - .env.production
    restart: unless-stopped

  sidekiq:
    image: docker.pkg.github.com/floriandejonckheere/headbanger/headbanger-app:v0.4.0-test2
    command: bundle exec sidekiq
    depends_on:
      - postgres
      - redis
    env_file:
      - .env.production
    restart: unless-stopped

  clock:
    image: docker.pkg.github.com/floriandejonckheere/headbanger/headbanger-app:v0.4.0-test2
    command: bundle exec clockwork config/clock.rb
    depends_on:
      - postgres
      - redis
    env_file:
      - .env.production
    restart: unless-stopped

  scrub:
    image: docker.pkg.github.com/floriandejonckheere/headbanger/headbanger-app:v0.4.0-test2
    command: bin/scrub
    depends_on:
      - postgres
      - redis<commit_msg>Deploy v0.4.0<commit_after>version: "3.7"

services:
  postgres:
    image: postgres:12
    volumes:
      - postgres:/var/lib/postgresql/data/
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: <PASSWORD>
    restart: unless-stopped

  redis:
    image: redis:alpine
    volumes:
      - redis:/data/
    restart: unless-stopped

  app:
    image: docker.pkg.github.com/floriandejonckheere/headbanger/headbanger-app:v0.4.0
    depends_on:
      - postgres
      - redis
    env_file:
      - .env.production
    restart: unless-stopped

  web:
    image: docker.pkg.github.com/floriandejonckheere/headbanger/headbanger-web:v0.4.0
    ports:
      - "81:80"
    volumes:
      - nginx:/cache/
      - ./client.pem:/etc/nginx/conf.d/client.pem
      - ./client.key:/etc/nginx/conf.d/client.key
    depends_on:
      - app
    env_file:
      - .env.production
    restart: unless-stopped

  sidekiq:
    image: docker.pkg.github.com/floriandejonckheere/headbanger/headbanger-app:v0.4.0
    command: bundle exec sidekiq
    depends_on:
      - postgres
      - redis
    env_file:
      - .env.production
    restart: unless-stopped

  clock:
    image: docker.pkg.github.com/floriandejonckheere/headbanger/headbanger-app:v0.4.0
    command: bundle exec clockwork config/clock.rb
    depends_on:
      - postgres
      - redis
    env_file:
      - .env.production
    restart: unless-stopped

  scrub:
    image: docker.pkg.github.com/floriandejonckheere/headbanger/headbanger-app:v0.4.0
    command: bin/scrub
    depends_on:
      - postgres
      - redis
{'fraction_non_alphanumeric': 0.11023869346733668, 'fraction_numerical': 0.016959798994974875, 'mean_word_length': 2.300518134715026, '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': '4786394', 'n_tokens_mistral': 1223, 'n_tokens_neox': 1206, 'n_words': 168}