<commit_before>version: '2'
services:
  db:
    image: postgres:latest
    container_name: db
    volumes:
      - /var/lib/postgresql
    environment:
      - POSTGRES_PASSWORD=<PASSWORD>
      - POSTGRES_DB=kerbalstuff
  redis:
    image: redis:latest
    container_name: redis
  spacedock:
    image: spacedock.info:5550/spacedock:latest
    container_name: spacedock
    environment:
      - USE_GUNICORN=true
    volumes:
      - /opt/spacedock/static
      - /opt/spacedock/storage
    expose:
      - "5000"
    links:
      - db
      - redis
    depends_on:
      - db
      - redis
  nginx:
    image: spacedock.info:5550/nginx:latest
    container_name: nginx
    ports:
      - "80"
    volumes_from:
      - spacedock
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    links:
      - spacedock
    depends_on:
      - spacedock<commit_msg>Picking a fixed port for deploymeny and making database data a bit more resilient.<commit_after>version: '2'
services:
  data:
    restart: always
    image: postgres:latest
    volumes:
      - /var/lib/postgresql
  db:
    restart: always
    image: postgres:latest
    container_name: db
    volumes_from:
      - data
    depends_on:
      - data
    environment:
      - POSTGRES_PASSWORD=<PASSWORD>
      - POSTGRES_DB=kerbalstuff
  redis:
    restart: always
    image: redis:latest
    container_name: redis
  spacedock:
    restart: always
    image: spacedock.info:5550/spacedock:latest
    container_name: spacedock
    environment:
      - USE_GUNICORN=true
    volumes:
      - /opt/spacedock/static
      - /opt/spacedock/storage
    expose:
      - "5000"
    links:
      - db
      - redis
    depends_on:
      - db
      - redis
  nginx:
    restart: always
    image: spacedock.info:5550/nginx:latest
    container_name: nginx
    ports:
      - "22045:80"
    volumes_from:
      - spacedock
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    links:
      - spacedock
    depends_on:
      - spacedock
{'fraction_non_alphanumeric': 0.09072781655034895, 'fraction_numerical': 0.01744765702891326, 'mean_word_length': 2.0594512195121952, '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': '4407581', 'n_tokens_mistral': 736, 'n_tokens_neox': 705, 'n_words': 131}