<commit_before>version: '3.7'

services:
  app:
    build:
      context: .
    # command: dockerize -wait tcp://db:5432 sh -c "python manage.py migrate --noinput"
    # command: dockerize -wait tcp://db:5432 sh -c "python manage.py loaddata /usr/local/apps/TEKDB/TEKDB/TEKDB/fixtures/all_dummy_data.json"
    volumes:
      - static_data:/vol/web
    environment:
      - SECRET_KEY=changemeindocker-compose
      - ALLOWED_HOSTS=127.0.0.1,localhost
      - SQL_ENGINE=django.contrib.gis.db.backends.postgis
      - SQL_DATABASE=tekdb
      - SQL_USER=tekdb_user
      - SQL_PASSWORD=<PASSWORD>
      - SQL_HOST=db
      - SQL_PORT=5432
    depends_on:
      - db
    links:
      - db
    networks:
      - djangonetwork

  proxy:
    build:
      context: ./proxy
    volumes:
      - static_data:/vol/static
      # - media_data:/vol/media
    ports:
      - "8080:8080"
    depends_on:
      - app
    networks:
      - djangonetwork

  db:
    image: postgis/postgis:14-3.1-alpine
    volumes:
      - postgis-data:/var/lib/postgresql
    environment:
      - POSTGRES_USER=tekdb_user
      - POSTGRES_PASSWORD=<PASSWORD>
      - POSTGRES_DB=tekdb
    ports:
      - 5432:5432<commit_msg>more tweaks to docker deploy config<commit_after>version: '3.7'

services:
  app:
    build:
      context: .
    # image: rhodges/itkdb
    # command: dockerize -wait tcp://db:5432 sh -c "python manage.py migrate --noinput"
    # command: dockerize -wait tcp://db:5432 sh -c "python manage.py loaddata /usr/local/apps/TEKDB/TEKDB/TEKDB/fixtures/all_dummy_data.json"
    volumes:
      - static_data:/vol/web
    environment:
      - SECRET_KEY=changemeindocker-compose
      - ALLOWED_HOSTS=127.0.0.1,localhost
      - SQL_ENGINE=django.contrib.gis.db.backends.postgis
      - SQL_DATABASE=tekdb
      - SQL_USER=tekdb_user
      - SQL_PASSWORD=<PASSWORD>
      - SQL_HOST=db
      - SQL_PORT=5432
    depends_on:
      - db
    links:
      - db
    networks:
      - djangonetwork

  proxy:
    build:
      context: ./proxy
    # image: rhodges/itkdb_proxy
    volumes:
      - static_data:/vol/static
      # - media_data:/vol/media
    ports:
      - "8080:8080"
    depends_on:
      - app
    networks:
      - djangonetwork

  db:
    image: postgis/postgis:14-3.1-alpine
    volumes:
      - postgis-data:/var/lib/postgresql
    environment:
      - POSTGRES_USER=tekdb_user
      - POSTGRES_PASSWORD=<PASSWORD>
      - POSTGRES_DB=tekdb
    ports:
      - 5432:5432
{'fraction_non_alphanumeric': 0.11174089068825911, 'fraction_numerical': 0.032388663967611336, 'mean_word_length': 2.1357868020304567, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '740383', 'n_tokens_mistral': 996, 'n_tokens_neox': 934, 'n_words': 142}