Docker Image of Strapi v4, using SQLite as database
1.5K
Source code taken from Strapi GitHub repository.
Strapi is a free and open-source headless CMS delivering your content anywhere you need.
gpistotnik/strapiUse gpistotnik/strapi to create a new project or run a project on your host machine.
gpistotnik/strapiThis image allows you to create a new strapi project or run a project form your host machine. The default command that will run in your project is strapi develop.
When running this image, strapi will check if there is a project in the /src/app folder of the container. If there is nothing then it will run the strapi new command in the container /srv/app folder. You can create a new project by running this command.
docker run -it -p 1337:1337 -v `pwd`/project-name:/srv/app gpistotnik/strapi
This command creates a project with an SQLite database. Then starts it on port 1337.
The -v option creates a project-name folder on your computer that will be shared with the docker container. Once the project is created it will be available in this folder on your computer.
You can also use gpistotnik/strapi to run a project you already have created (or cloned for a repo) on your computer.
First make sure to delete the node_modules folder if you have already installed your dependencies on your host machine. Then run:
cd my-project
docker run -it -p 1337:1337 -v `pwd`:/srv/app strapi/strapi
This will start by installing the dependencies and then run strapi develop in the project.
Content type
Image
Digest
Size
798.5 MB
Last updated
over 4 years ago
docker pull gpistotnik/strapi