A Strapi 4 template project using PostgreSQL with Docker and Docker Compose support
This repository is associated with a blog post, for more details please head to the post from here.
-
Install
npm
dependencies (run command inapp
directory)npm i
-
Launch development database
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d db
-
Run Strapi in development mode
npm run develop
-
Shutdown development database (optional)
docker-compose -f docker-compose.yml -f docker-compose.dev.yml down
-
Build Strapi admin panel (run command in
app
directory)npm run build
-
Run with Docker Compose (run in repository root directory)
docker-compose up -d --build
Consider buying us a coffee ❤️