https://github.com/badsyntax/richardwillis.info-strapi
https://github.com/badsyntax/richardwillis.info-strapi
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/badsyntax/richardwillis.info-strapi
- Owner: badsyntax
- Created: 2021-08-21T08:27:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T09:06:19.000Z (about 3 years ago)
- Last Synced: 2025-02-28T22:55:14.036Z (over 1 year ago)
- Language: JavaScript
- Size: 4.71 MB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Strapi Richard Willis
[](https://github.com/badsyntax/richardwillis.info-strapi/actions/workflows/analyze.yml)
[](https://github.com/badsyntax/richardwillis.info-strapi/actions/workflows/deploy.yml)
## Getting Started
Set the following env vars within `.env`:
```bash
HOST=0.0.0.0
ADMIN_JWT_SECRET=somerandomstring
DATABASE_HOST=1.1.1.1
DATABASE_PORT=5432
DATABASE_NAME=strapi
DATABASE_USERNAME=strapi
DATABASE_PASSWORD=password
AWS_ACCESS_KEY_ID=
AWS_ACCESS_SECRET=
AWS_REGION=
AWS_BUCKET=
LOG_LEVEL=error
SMTP_HOST=
SMTP_USERNAME=
SMTP_PASSWORD=
SMTP_PORT=
```
```bash
# When adding new models/content-types
npm run dev
# In production
npm run build
npm start
```
## Build
```bash
docker build -t ghcr.io/badsyntax/richardwillis.info-strapi:latest .
docker run --publish 1337:1337 --volume $(pwd)/.env:/app/.env ghcr.io/badsyntax/richardwillis.info-strapi:latest
docker push ghcr.io/badsyntax/richardwillis.info-strapi:latest
```
Or:
```bash
docker buildx create --use
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/badsyntax/richardwillis.info-strapi:latest --push .
```
## Production
Run the docker image by providing an /app/.env file (eg with docker secrets)