Next.js, Strapi, PostgreSQL, Nginx, Docker.
- 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-compose -f development.compose.yml up --build
docker-compose -f production.compose.yml up -d --build
docker-compose -f *.compose.yml down
npm run strapi export -- --no-encrypt --no-compress
npm run strapi import -- -f name_import_file.tar
docker-compose -f production.compose.yml run --rm certbot certonly --webroot --webroot-path /var/www/certbot/ -d [domain-name]