fitoe / strapiv4

strapi v4 with docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿš€ Getting started with Strapi & sqlite

you need to create (or not) a .env file in the workdir like:

HOST = <0.0.0.0>
PORT=<1337>
APP_KEYS=<yourkey>
API_TOKEN_SALT=<your salt>
ADMIN_JWT_SECRET=<your admin jwt secret>
JWT_SECRET=<your jwt secret>
DATABASE_CLIENT='sqlite'
DATABASE_FILENAME='.tmp/data.db'
NODE_ENV=develop

run

docker-compose up -d

๐ŸŽ‰ enjoy!!

http://localhost:1337/admin/

Build your docker image (optional)

# build docker image: docker build . -t strapiv4-docker
docker build . -t <dockername>
# tag the image :docker tag strapiv4-docker imjzq/strapiv4-docker:latest
docker tag <dockername> <hubuser>/<repo-name>[:<tag>]
# push to dockerhub: docker push imjzq/strapiv4-docker:latest
docker push <hubuser>/<repo-name>[:<tag>]

About

strapi v4 with docker


Languages

Language:Dockerfile 86.4%Language:JavaScript 13.6%