Directus

Directus is a real-time API and App dashboard for managing SQL database content.

# file: `docker-compose.yml`

services:
  directus:
    image: ${HONEYPI_IMAGE_REGISTRY_HOST:-docker.io}/directus/directus:${HONEYPI_DIRECTUS_VERSION:-latest}
    container_name: directus
    restart: unless-stopped
    ports:
      - ${HONEYPI_DIRECTUS_PORT:-8055}:8055
    volumes:
      - ${HONEYPI_DATA}/directus/uploads:/directus/uploads
      - ${HONEYPI_DATA}/directus/extensions:/directus/extensions
    environment:
      - SECRET=${HONEYPI_DIRECTUS_SECRET}
      - ADMIN_EMAIL=${HONEYPI_DIRECTUS_EMAIL}
      - ADMIN_PASSWORD=${HONEYPI_DIRECTUS_PASSWORD}
      - CACHE_ENABLED=true
      - CACHE_AUTO_PURGE=true
      - CACHE_STORE=redis
      - REDIS=redis://${HONEYPI_REDIS_HOST:-localhost}:${HONEYPI_REDIS_PORT:-6379}
      - DB_CLIENT=pg
      - DB_HOST=${HONEYPI_POSTGRES_HOST:-localhost}
      - DB_PORT=${HONEYPI_POSTGRES_PORT:-5432}
      - DB_DATABASE=directus
      - DB_USER=${HONEYPI_POSTGRES_USER:-admin}
      - DB_PASSWORD=${HONEYPI_POSTGRES_PASSWORD}
    labels:
      - traefik.enable=${HONEYPI_DIRECTUS_TRAEFIK_ENABLE:-false}
      - traefik.http.routers.directus.rule=Host(`${HONEYPI_DIRECTUS_HOST}`)
      - traefik.http.routers.directus.entrypoints=websecure
      - traefik.http.routers.directus.tls.certresolver=resolver
      - traefik.http.routers.directus.service=directus
      - traefik.http.services.directus.loadbalancer.server.port=8055