An open API service indexing awesome lists of open source software.

https://github.com/trydma/nextjs-strapi-nginx-docker

Boilerplate for building a web application.
https://github.com/trydma/nextjs-strapi-nginx-docker

certbot docker nextjs nginx postgresql strapi

Last synced: about 1 year ago
JSON representation

Boilerplate for building a web application.

Awesome Lists containing this project

README

          

# 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]
```