Strapi containerized
Strapi + MySQL + PhpMyAdmin
git clone https://github.com/strapi/strapi-docker && cd strapi-docker
- Run using
docker-compose up
You should the be able to access your Strapi installation at localhost:1337.
FROM strapi/strapi
APP_NAME
to override thestrapi-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 theMONGO_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.