Sign inSign up

gpistotnik/strapi

By gpistotnik

•Updated over 4 years ago

Docker Image of Strapi v4, using SQLite as database

Image
0

1.5K

gpistotnik/strapi repository overview

⁠Strapi

Source code taken from Strapi⁠ GitHub repository.

Strapi is a free and open-source headless CMS delivering your content anywhere you need.

  • Keep control over your data. With Strapi, you know where your data is stored, and you keep full control at all times.
  • Self-hosted. You can host and scale Strapi projects the way you want. You can choose any hosting platform you want: AWS, Render, Netlify, Heroku, a VPS, or a dedicated server. You can scale as you grow, 100% independent.
  • Database agnostic. Strapi works with SQL databases. You can choose the database you prefer: PostgreSQL, MySQL, MariaDB, and SQLite.
  • Customizable. You can quickly build your logic by fully customizing APIs, routes, or plugins to fit your needs perfectly.

⁠Available images

⁠gpistotnik/strapi

⁠Image

Use gpistotnik/strapi⁠ to create a new project or run a project on your host machine.

⁠How to use gpistotnik/strapi

This 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⁠.

⁠Creating a new project

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.

⁠Running a project from your host machine

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.

Tag summary

Content type

Image

Digest

Size

798.5 MB

Last updated

over 4 years ago

docker pull gpistotnik/strapi