<commit_before>version: '3.7'
services:
  nginx:
    image: nginx:1.17.3-alpine
    restart: always
    volumes:
      - .:/app
      - ./docker/nginx/app.conf:/etc/nginx/conf.d/app.conf
    networks:
      default:
      reverse-proxy:
        aliases:
          - pickem
          - pickem.frontend
    depends_on:
      - php-fpm

  php-fpm:
    build:
      context: .
      dockerfile: docker/php/Dockerfile
    restart: always
    volumes:
      - ./docker/php/php.ini:/usr/local/etc/php/php.ini
      - .:/app
      - ~/.composer:/root/.composer
    working_dir: /app
    environment:
      - APP_ENV
      - DATABASE_URL
      - HONEYBADGER_API_KEY

  postgres:
    image: postgres:11.5-alpine
    restart: always
    environment:
      - PGDATA=/var/lib/postgresql/data
      - POSTGRES_USER
      - POSTGRES_PASSWORD
      - POSTGRES_DB
      - PSQL_HISTORY=/var/lib/postgresql/history/pickem
    volumes:
      - ./data/postgres:/var/lib/postgresql/data
      - ./data/psql-history:/var/lib/postgresql/history

  postgres-snapshot:
    build:
      context: .
      dockerfile: docker/postgres-snapshot/Dockerfile
    restart: 'no'
    environment:
      - DATABASE_URL
      - DROPBOX_TOKEN
      - HONEYBADGER_POSTGRES_SNAPSHOTS_CHECKIN
    volumes:
      - ./bin:/app/bin

networks:<commit_msg>Add `scraper` service to production docker-compose.yml<commit_after>version: '3.7'
services:
  nginx:
    image: nginx:1.17.3-alpine
    restart: always
    volumes:
      - .:/app
      - ./docker/nginx/app.conf:/etc/nginx/conf.d/app.conf
    networks:
      default:
      reverse-proxy:
        aliases:
          - pickem
          - pickem.frontend
    depends_on:
      - php-fpm

  php-fpm:
    build:
      context: .
      dockerfile: docker/php/Dockerfile
    restart: always
    volumes:
      - ./docker/php/php.ini:/usr/local/etc/php/php.ini
      - .:/app
      - ~/.composer:/root/.composer
    working_dir: /app
    environment:
      - APP_ENV
      - DATABASE_URL
      - HONEYBADGER_API_KEY

  postgres:
    image: postgres:11.5-alpine
    restart: always
    environment:
      - PGDATA=/var/lib/postgresql/data
      - POSTGRES_USER
      - POSTGRES_PASSWORD
      - POSTGRES_DB
      - PSQL_HISTORY=/var/lib/postgresql/history/pickem
    volumes:
      - ./data/postgres:/var/lib/postgresql/data
      - ./data/psql-history:/var/lib/postgresql/history

  postgres-snapshot:
    build:
      context: .
      dockerfile: docker/postgres-snapshot/Dockerfile
    restart: 'no'
    environment:
      - DATABASE_URL
      - DROPBOX_TOKEN
      - HONEYBADGER_POSTGRES_SNAPSHOTS_CHECKIN
    volumes:
      - ./bin:/app/bin

  scraper:
    build:
      context: .
      dockerfile: docker/scraper/Dockerfile
    restart: "always"
    volumes:
      - ./scraper/index.js:/app/index.js

networks:
{'fraction_non_alphanumeric': 0.116435924742634, 'fraction_numerical': 0.006389776357827476, 'mean_word_length': 1.8961973278520041, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7540485', 'n_tokens_mistral': 1077, 'n_tokens_neox': 1035, 'n_words': 141}