<commit_before>version: '3'
services:

#  db:
#    restart: always
#    image: postgres:9.6-alpine
### Uncomment to enable DB persistance
#    volumes:
#      - ./data/pgsql:/var/lib/postgresql/data

#  redis:
#    restart: always
#    image: redis:4.0-alpine
### Uncomment to enable REDIS persistance
#    volumes:
#      - ./data/redis:/data

  web:
    build: .
    image: gargron/mastodon
    restart: always
    env_file: .env.production
    environment:
      - WEB_CONCURRENCY=6
    command: bundle exec rails s -p 3000 -b '0.0.0.0'
    ports:
      - "127.0.0.1:3000:3000"
#    depends_on:
#      - db
#      - redis
    volumes:
      - ./public/assets:/mastodon/public/assets
      - ./public/packs:/mastodon/public/packs
      - ./public/system:/mastodon/public/system

  streaming:
    build: .
    image: gargron/mastodon
    restart: always
    env_file: .env.production
    command: npm run start
    ports:
      - "127.0.0.1:4000:4000"
#    depends_on:<commit_msg>Reduce web_concurrency to put the server at ease<commit_after>version: '3'
services:

#  db:
#    restart: always
#    image: postgres:9.6-alpine
### Uncomment to enable DB persistance
#    volumes:
#      - ./data/pgsql:/var/lib/postgresql/data

#  redis:
#    restart: always
#    image: redis:4.0-alpine
### Uncomment to enable REDIS persistance
#    volumes:
#      - ./data/redis:/data

  web:
    build: .
    image: gargron/mastodon
    restart: always
    env_file: .env.production
    environment:
      - WEB_CONCURRENCY=4
    command: bundle exec rails s -p 3000 -b '0.0.0.0'
    ports:
      - "127.0.0.1:3000:3000"
#    depends_on:
#      - db
#      - redis
    volumes:
      - ./public/assets:/mastodon/public/assets
      - ./public/packs:/mastodon/public/packs
      - ./public/system:/mastodon/public/system

  streaming:
    build: .
    image: gargron/mastodon
    restart: always
    env_file: .env.production
    command: npm run start
    ports:
      - "127.0.0.1:4000:4000"
#    depends_on:
{'fraction_non_alphanumeric': 0.13319979969954931, 'fraction_numerical': 0.04206309464196294, 'mean_word_length': 2.233009708737864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '4074504', 'n_tokens_mistral': 808, 'n_tokens_neox': 753, 'n_words': 146}