Newer
Older
Site for Public Stack project with Strapi as backend and Gatsby as frontend.
Upon each update in Strapi the Gatsby build command is called (see /backend/api/util/services/Util.js).
A separate nginx Docker container serves the files generated by the Gatby build process.
### build docker image
```shell
./build.sh
```
Builds Docker image from the Dockerfile.
### start docker containers
```shell
./up.sh
```
Starts two containers:
- container with Strapi and Gatsby (note: /backend/db, /backend/public/uploads/ & /backend/.env should be present in directory)
- container with nginx (serves whatever is present in Docker volumne 'public-stack-site-volume', mapped to Gatby build folder /frontend/public)
### stop docker containers
```shell
./down.sh
```