<commit_before># See https://github.com/studentenportal/deploy2020 for deployment docs.

version: '3.5'
services:

# nginx - reverse proxy
  nginx:
    image: studentenportal-nginx

    build:
      context: .
      dockerfile: deploy/production/nginx/Dockerfile

    ports:
      - 80:80
      - 443:443

    volumes:
      # HOST_OR_NAME:CONTAINER
      - "/home/studentenportal/media:/srv/www/studentenportal/media"
      - "studentenportal-dehydrated:/etc/dehydrated"
      - "studentenportal-static:/srv/www/studentenportal/static"

    networks:
      studentenportal-prod:
        aliases:
          - webserver

    depends_on:
      - studentenportal

# postgres - Database server
  postgres:
    image: postgres:12

    volumes:
      # HOST:CONTAINER
      - "/home/studentenportal/postgres-data:/var/lib/postgresql/data"

    env_file:
      ~/studentenportal.env

    networks:
        studentenportal-prod:
          aliases:
            - database
            - postgres

# studentenportal - Application server with python
  studentenportal:
    image: studentenportal/dev:latest

    build:
      context: .
      dockerfile: deploy/production/Dockerfile
      args:
          - UID=${UID-1001}
          - GID=${GID-1001}

    volumes:
      # HOST_OR_NAME:CONTAINER
      - "/home/studentenportal/media:/srv/www/studentenportal/media"
      - "studentenportal-static:/srv/www/studentenportal/static"<commit_msg>docker-compose: Ensure that containers are restarted<commit_after># See https://github.com/studentenportal/deploy2020 for deployment docs.

version: '3.5'
services:

# nginx - reverse proxy
  nginx:
    image: studentenportal-nginx

    build:
      context: .
      dockerfile: deploy/production/nginx/Dockerfile

    ports:
      - 80:80
      - 443:443

    volumes:
      # HOST_OR_NAME:CONTAINER
      - "/home/studentenportal/media:/srv/www/studentenportal/media"
      - "studentenportal-dehydrated:/etc/dehydrated"
      - "studentenportal-static:/srv/www/studentenportal/static"

    networks:
      studentenportal-prod:
        aliases:
          - webserver

    restart: unless-stopped

    depends_on:
      - studentenportal

# postgres - Database server
  postgres:
    image: postgres:12

    volumes:
      # HOST:CONTAINER
      - "/home/studentenportal/postgres-data:/var/lib/postgresql/data"

    env_file:
      ~/studentenportal.env

    networks:
        studentenportal-prod:
          aliases:
            - database
            - postgres

    restart: unless-stopped

# studentenportal - Application server with python
  studentenportal:
    image: studentenportal/dev:latest

    build:
      context: .
      dockerfile: deploy/production/Dockerfile
      args:
          - UID=${UID-1001}
          - GID=${GID-1001}

    volumes:
      # HOST_OR_NAME:CONTAINER
      - "/home/studentenportal/media:/srv/www/studentenportal/media"
      - "studentenportal-static:/srv/www/studentenportal/static"
{'fraction_non_alphanumeric': 0.10219966159052453, 'fraction_numerical': 0.017597292724196276, 'mean_word_length': 2.3325817361894026, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 8, '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': '4201358', 'n_tokens_mistral': 1018, 'n_tokens_neox': 975, 'n_words': 144}