Starpi is new gen CMS for Node based projects, and it help us to build and manage content using customizable Admin UI.
Docker : When start using different technologies and database, Docker can make dev work easier. Developer usually need to work with different databases,frameworks, languages etc, which require super awesome computer.
Docker container help us to run development environment within a disposable,light weight container, it can include, Mysql, Mongo, Strapi and more etct .. Each container working based on Docker Images. You can explore more about Docker Images @ Docker Hub
How to start
First we need Docker for desktop get installed in Windows machine and then we need to use the Docker image to create strapi project. You need a Linux Subsystem get installed on Windows for proper working of Docker.
On the terminal please issue the following command create a project at the drive E named starpiProject.
docker run -it -p 1337:1337 -v E:\starpiProject:/srv/app strapi/strapi
This will run a docker container with interactive terminal mode (-it) and use local storage or volume which will create a strapi project starpiProject (on drive e) folder and run at the port of localhost:1337.
You can visit the the local host in a web brower which welcome you with user signup form.
Run the existing Project ?
The same command can be work for us and in case of non existed project, new one will be created.
docker run -it -p 1337:1337 -v E:\starpiProject:/srv/app strapi/strapi
Have a look at these docker posts
- How to use MSSQL Server on ARM based Mac.
- Access Docker MSSQL Container from Parallel (Mac Mini M2)
- Mac Mini M2 for Windows Developers
- Deploy golang API in Digital Ocean using docker container
- How to Containerize Golang app with Docker
- How to create a strapi project with Docker on Windows
- Docker-compose for projects
- Create a docker image of Node-Express API – Part II
- Create a docker image of Node-Express API – Part I
- Howto to stop all containers at once in docker