Giter VIP home page Giter VIP logo

strapi-docker's Introduction

Strapi containerized

Strapi

API creation made simple, secure and fast. The most advanced open-source Content Management Framework to build powerful API with no effort.


Travis GitHub release Docker Pulls

Quickstart (recommended)

Read the Medium post to have full explaination

  1. git clone https://github.com/strapi/strapi-docker && cd strapi-docker
  2. Run using docker-compose up

Pull from Docker Hub

docker pull strapi/strapi

Then run image

Start a database (e.g. MongoDB)

docker run -e MONGO_INITDB_DATABASE=strapi \
           -v `pwd`/db/:/data/db \
           --name strapi-mongo \
           -d mongo

Start strapi

docker run -e APP_NAME=strapi-app \
           -e DATABASE_CLIENT=mongo \
           -e DATABASE_HOST=strapi-mongo \
           -e DATABASE_PORT=27017 \
           -e DATABASE_NAME=strapi \
           -v `pwd`/strapi-app:/usr/src/api/strapi-app \
           --link strapi-mongo:mongo \
           -p 1337:1337 \
           --name strapi -d strapi/strapi

You should the be able to access your Strapi installation at localhost:1337.

Use as base image

FROM strapi/strapi

Environment variables

  • APP_NAME to override the strapi-app generated folder name (you should also update the volumes paths).
  • DATABASE_CLIENT a database providers supported by Strapi: MongoDB, Postgres, MySQL, Sqlite3 and Redis.
  • DATABASE_HOST database service name.
  • DATABASE_PORT depends on your database client.
  • DATABASE_NAME initializes a database with specific name (default strapi). When using MongoDB, you should also update the MONGO_INITDB_DATABASE environment in the db service.
  • DATABASE_USERNAME set the username of the database connection.
  • DATABASE_PASSWORD set the password of the database connection.
  • DATABASE_SRV boolean for SRV.
  • DATABASE_SSL boolean for SSL.
  • DATABASE_AUTHENTICATION_DATABASE set the authentification.
  • EXTRA_ARGS add any Extra supported arguments in the form of a string.

strapi-docker's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.