Skip to content

trydma/nextjs-strapi-nginx-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boilerplate for building a web application.

Next.js, Strapi, PostgreSQL, Nginx, Docker.

Instruction 📖

  • In the Docker folder, configure the environment.
  • Start development and customize strapi.
  • Add the resulting strapi token to the environment (it will be available on the frontend).
  • On production, configure the nginx configuration for your domain. Also change the environment for production.
  • Get ssl certificate using certbot for your server.

Docker 🐳

Running containers for development

docker-compose -f development.compose.yml up --build

Running containers for production

docker-compose -f production.compose.yml up -d --build

Removing containers

docker-compose -f *.compose.yml down

Strapi 🛠️

Data export without encryption and compression

npm run strapi export -- --no-encrypt --no-compress

Data import

npm run strapi import -- -f name_import_file.tar

Certbot 🤖

Obtaining ssl certificate

docker-compose -f production.compose.yml run --rm certbot certonly --webroot --webroot-path /var/www/certbot/ -d [domain-name]

About

Boilerplate for building a web application.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published