A Docker-based development and production environment for AdonisJS v6.
- If not already done, install Docker Compose (v2.10+)
- Run
docker compose build --pull --no-cacheto build fresh images - Run
docker compose up --waitto set up and start a fresh AdonisJS project - Open
https://localhost:3333in your favorite web browser - Run
docker compose down --remove-orphansto stop the Docker containers.
That's it. The first run will automatically scaffold a new AdonisJS project using the default options (web kit, PostgreSQL, session auth, npm).
Clone your AdonisJS project into this directory (or copy the Docker files into your project). As long as package.json exists, the entrypoint will skip project creation and just install dependencies.
git clone https://github.com/your/adonis-project .
docker compose up --wait- Configuration Options — starter kits, database, auth, package manager, inertia
- Makefile — shortcut commands for common tasks
- Production — building and deploying for production
- Troubleshooting — common issues and solutions
MIT