Saltar al contenido principal

Docker Compose deployment

Reference for a Colander deployed with Colander quick deploy, the docker folder of the colander-ansible repository. To deploy one, see Deploy Colander with Docker Compose.

Compose files​

FileDescription
compose-init.ymlBootstraps a minimal .env file with randomly generated secrets. Run it once, before anything else.
compose.ymlThe whole stack, with Let's Encrypt certificates. Base file for production deployments.
compose-dev.ymlIncludes compose.yml and overrides some services: generates a self-signed certificate in ./data/traefik/certs/self-signed/cert.pem and exposes the Traefik dashboard.
compose-colander.ymlColander alone, with its database, object storage, search engine and cache.
compose-threatr.ymlThreatr alone.
compose-mandolin.ymlMandolin alone, with Apache Tika and ClamAV.
compose-cyberchef.ymlCyberChef alone.
compose-playwright.ymlPlaywright, which takes the screenshots of URLs and captures their HAR files. Optional: included by compose.yml, add it with -f when you start components one by one.
.env.exampleAll the available settings, commented.

Addresses​

ServiceLocal addressHostname address
Colanderhttp://localhost:5000https://colander.local:4443
Threatrhttp://localhost:5001https://threatr.local:4443
Mandolinhttp://localhost:5002https://mandolin.local:4443
CyberChefhttp://localhost:5003https://cyberchef.local:4443
Traefik dashboard, compose-dev.yml onlyhttp://localhost:8080http://traefik.local:8080

The hostname addresses require the hostnames to be added to the line starting with 127.0.0.1 in /etc/hosts. The administration panels of Colander and Threatr are served at admin/ by default.

Services​

ServiceCompose file
colander-front, colander-worker, colander-postgres, miniocompose-colander.yml
threatr-front, threatr-worker, threatr-postgrescompose-threatr.yml
mandolin, tika, clamavcompose-mandolin.yml
cyberchefcompose-cyberchef.yml
playwrightcompose-playwright.yml
traefik, elasticsearch, redis, watchtowercompose-base.yml, shared by the other files

See Services for the role of each service.

Configuration​

The settings are read from the .env file in the docker folder. compose-init.yml creates it with the required secrets. All the other settings have defaults and are documented in .env.example. The main ones are:

SettingDescription
COLANDER_DJANGO_SECRET_KEY, THREATR_DJANGO_SECRET_KEYSecret keys of Colander and Threatr. Required, generated by compose-init.yml.
MINIO_ACCESS_KEY, MINIO_SECRET_KEY, MINIO_ROOT_USER, MINIO_ROOT_PASSWORDCredentials of the object storage. Required, generated by compose-init.yml.
COLANDER_IMAGE_VERSION, THREATR_IMAGE_VERSION, MANDOLIN_IMAGE_VERSION…Versions of the Docker images. The PTS images have two main tags: main, the latest release, and next, the staging version. The .env file created by compose-init.yml sets COLANDER_IMAGE_VERSION=next.
COLANDER_FQDN, THREATR_FQDN, CYBERCHEF_FQDN, TRAEFIK_DASHBOARD_FQDNDomain names of the services. Default to colander.local, threatr.local, cyberchef.local and traefik.local.
COLANDER_BASE_URL, THREATR_BASE_URL, CYBERCHEF_BASE_URL, MANDOLIN_BASE_URLAddresses the services use to reach each other.
TRAEFIK_CERTIFICATESRESOLVER_LETSENCRYPT_ACME_EMAILEmail address passed to Let's Encrypt.
TRAEFIK_HTTP_BINDING, TRAEFIK_HTTPS_BINDING, TRAEFIK_DASHBOARD_BINDINGAddresses the reverse proxy listens on. Default to 127.0.0.1:8000, 127.0.0.1:4443 and 127.0.0.1:8080.
COLANDER_DJANGO_ADMIN_URL, THREATR_DJANGO_ADMIN_URLPaths of the administration panels. Default to admin/.
ELASTICSEARCH_ES_JAVA_OPTS_XMS, ELASTICSEARCH_ES_JAVA_OPTS_XMXMemory allocated to Elasticsearch.
*_VOLUME_PATHDocker volumes or paths where the data is stored.
DOCKER_SOCKET_PATHPath of the Docker socket, for instance /run/user/1000/docker.sock with rootless Docker.
DOCKER_LOG_DRIVERLogging driver of the containers, such as json-file (default), journald or syslog.
TRAEFIK_LOG_LEVELLog level of the reverse proxy. ERROR by default, TRACE with compose-dev.yml.
TRAEFIK_ACCESSLOG_ENABLEDLogs the incoming requests. Enabled by default.