Strapi4-React-Docker Boilerplate ready for testing

Hello everyone,
I wrote a Strapi4-React-Docker Boilerplate which I would like to share with you.

With just one command (make new ) and answering 3 questions, the boilerplate will setup a custom “docker-compose.yml” for you and setup all containers including the software you need to build a docker based app with Strapi4 in the backend and react in the frontend.

It features the following containers:

  • Traefik as reverse proxy
  • Nginx to serve React Production
  • NodeJS to serve Strapi4 and React dev-Server
  • MariaDB (optional)

The boilerplate can be controlled by several make commands, such as make ui-dev to start a React dev-server or make up to start/restart the docker containers.

The most important commands are documented in the README

The boilerplate will also create custom .local domains and place them into your /etc/hosts, so you can access everything you need by domain. Let’s say your project is called “example”, then Strapi will be available on http://cms.example.local

It would be great if you test it and tell me what you think:

Hey @pix3l, first off I want to say what an awesome-looking tool! :tada:

Tried to boot up a project using it last night and unfortunately hit an issue after completing the setup script where, as far as I could tell, the container wasn’t starting up and hitting errors when trying to run any of the commands e.g. make up, make ui-dev or others.

Hoping to find some time this weekend to dig into it again, try to figure out what’s going wrong so I can create a PR against your repo :vulcan_salute:

Cheers!