Shared Docker Network cti-net and Fixing Volume UIDs
Fix cross-stack container DNS and CrashLoopBackOff permission errors on Proxmox/Docker CTI deployments using a shared cti-net network and UID script
Spinning up a self-hosted CTI stack on dockge-cti looks straightforward until you run separate Compose stacks for infra (Postgres 17, Valkey, Elasticsearch), xtm (OpenCTI), MISP, TheHive, and DFIR-IRIS.
Two snags hit almost immediately: containers in separate Compose files can't resolve each other by name, and bind-mounted host folders throw Permission denied / CrashLoopBackOff errors on startup.
The first trap is assuming separate Docker Compose files will magically share DNS. That bit me back when wiring LLM workflows across separate Docker Compose stacks. By default, Compose creates an isolated bridge network per stack, so TheHive, OpenCTI, and MISP end up blind to shared services unless you build the shared road first:
docker network create cti-net
Declaring cti-net as external: true across the infra stack and each app stack lets containers resolve each other cleanly by service name without cramming twenty services into one unmaintainable docker-compose.yml.
The second trap hits the moment you bind-mount persistent storage under /opt/stacks/.../volumes/data. Upstream images do not agree on user IDs:
- PostgreSQL expects UID/GID 70:70 (or 999:999 depending on image flavor)
- Elasticsearch expects 1000:1000
- Redis / Valkey expects 999:999
Blindly running chmod -R 777 across your storage pool is a lazy shortcut that breaks file permissions and leaves data wide open. Instead, standardize volume ownership via a repeatable host helper script (volume-config.sh / fix-permissions.sh) before bringing stacks up:
#!/bin/bash
set -e
STACK_ROOT="/opt/stacks"
sudo chown -R 70:70 "${STACK_ROOT}/infra/volumes/postgres"
sudo chown -R 1000:1000 "${STACK_ROOT}/infra/volumes/elasticsearch"
sudo chown -R 999:999 "${STACK_ROOT}/infra/volumes/valkey"
One real-world divergence in my live setup since my earlier OpenCTI Docker stack notes: while OpenCTI (xtm), OpenAEV, FlowIntel, and n8n share the central infra-postgres instance, MISP still runs with its own standalone MariaDB 10.11 container inside the MISP stack. Knowing which services share infra and which carry their own DB saves a lot of head-scratching during backups and upgrades.
See you next time.