Sign inSign up

gounux/gischat

By gounux

Updated 24 days ago

#gischat API backend for chatting in your favorite GIS tool, e.g. QGIS / QField

Image
API management
0

2.2K

gounux/gischat repository overview

#gischat API backend for chatting with your tribe in GIS tools like QGIS, QField and other to come.

Can be deployed using a compose file like this :

services:

  api:
    image: gounux/gischat:latest
    container_name: gischat-app
    environment:
      - NB_UVICORN_WORKERS=9
      - ROOMS=Living room,Kitchen,Garden
      - RULES=Be kind and nice to this wonderful world
      - MAIN_LANG=en
      - INSTANCE_ID=abcdefghijklmnopqrstuvwxyz
      - MIN_AUTHOR_LENGTH=3
      - MAX_AUTHOR_LENGTH=32
      - MAX_MESSAGE_LENGTH=255
      - MAX_IMAGE_SIZE=800
      - MAX_GEOJSON_FEATURES=500
      - MAX_STORED_MESSAGES=5
      - REDIS_HOST=redis
    ports:
      - 80:8000
    restart: unless-stopped
    depends_on:
      redis:
        condition: service_healthy

  redis:
    image: redis:8
    container_name: gischat-redis
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 5s
      timeout: 3s
      retries: 5
    volumes:
    - redis-data:/data

volumes:
  redis-data:
  • NB_UVICORN_WORKERS refers to the number of async workers. A usual convenient value would be : (nb_cpu * 2) + 1.
  • ROOMS environment variable is a comma-separated list of strings which represent the available chat rooms.
  • RULES environment variable describes the instance's rules. Useful information that users should know, even when skimming content.
  • MAX_IMAGE_SIZE environment variable describes the max size of image in pixels. The server will resize images based on this value.
  • MAX_GEOJSON_FEATURES environment variable describes the max number of features allowed in a geojson message. If there is more feature, the message will not be considered and the server will respond with a uncompliant message.

Tag summary

Content type

Image

Digest

sha256:a54426c66

Size

77.8 MB

Last updated

24 days ago

docker pull gounux/gischat