# TRAM compose file. # - TRAM is currently setup to use Django with SQLite DB # - TRAM currently only works from localhost on port 8000 (or whatever port you select here) # - Any ML data and DB data is stored at the path stored in the environment variable # `DATA_DIRECTORY`. This is internal to Django. # - ALLOWED_HOSTS is a list of hosts allowed to connect to the Django server (in settings.py) # - SECRET_KEY is generated at startup to a random value. Set SECRET_KEY env variable for tram service below # to use a static value. version: '3.5' services: tram: image: ghcr.io/center-for-threat-informed-defense/tram:latest environment: - DATA_DIRECTORY=/tram/data - ALLOWED_HOSTS=["example_host1", "localhost"] - DJANGO_SUPERUSER_USERNAME=djangoSuperuser - DJANGO_SUPERUSER_PASSWORD=LEGITPassword1234 # your password here - DJANGO_SUPERUSER_EMAIL=test@example.com # your email address here volumes: - tram:/tram/data - tram_static:/tram/src/tram/staticfiles nginx: image: ghcr.io/center-for-threat-informed-defense/tram-nginx:latest ports: - "8000:80" volumes: - tram:/tram/data:ro - tram_static:/tram/src/tram/staticfiles:ro volumes: tram: tram_static: