This repository provides a Docker-based setup for running Directus with multiple environments behind an Nginx reverse proxy.
- Docker Compose file
- Nginx conf to route to different Directus backends
- Create a new directus instance root folder
cp ./directus/ ./directus-one/
- Go in folder
cd directus-one
- Run
docker-compose up -d
To run multiple instances configure each instance on its own port by changing 80:8055
to 8084:8055
or something similar.
Use the included nginx config template to route to the instances accordingly! In the template there are 2 instances on ports 8084 and 8085 preconfigured. Feel free to add more!
If you get an error where directus is not allowed to access the ./uploads
or ./database
folder run chmod 777 uploads/
and chmod 777 database/