Socket
Book a DemoInstallSign in
Socket

@strapi-community/dockerize

Package Overview
Dependencies
Maintainers
8
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@strapi-community/dockerize

Easy add docker support for a Strapi Project

1.16.2
latest
Source
npmnpm
Version published
Maintainers
8
Created
Source

@Strapi-community/dockerize

Add docker support for a Strapi Project with ease πŸš€

Feel free to buy @Eventyret a β˜•οΈ if this tool was helpful Open Collective

Strapi Discord NPM Version Monthly download on NPM

Table of Contents

🚦 Current Status

This package is currently under development and should be consider STABLE in terms of state. I/We are currently accepting contributions and/or dedicated contributors to help develop and maintain this package.

For more information on contributing please see the contrib message below.

✨ Usage

npx @strapi-community/dockerize

You can also call it directly with arguments

npx @strapi-community/dockerize new --dbclient=mysql --dbhost=localhost --dbport=1234 --dbname=strapi --dbusername=strapi --dbpassword=strapi --projecttype=js --packagemanager=yarn --usecompose=false --env=both

πŸ€– Using CLI Arguments

Please note the new keyword is required for this to take effect.

npx @strapi-community/dockerize new
--projectname=<projectname>
--dbtype=<dbclient>
--dbhost=<dbhost>
--dbport=<dbport>
--dbname=<dbname>
--dbusername=<dbusername>
--dbpassword=<dbpassword>
--projecttype=<projecttype>
--packagemanager=<packagemanager>
--usecompose=<usecompose>
--env=<env>
| πŸ’» Command     | πŸ’¬ Value                                | πŸ¦„ Type | 🐲 Default    |
| -------------- | --------------------------------------- | ------- | ------------- |
| projectname    |                                         | String  | `mystrapi`    |
| dbclient       | `postgres` \| `mysql` \| `mariadb`      | String  | `postgres`    |
| dbhost         |                                         | String  | `localhost`   |
| dbport         | `5432` \| `3306`                        | Number  | `5432`        |
| dbname         |                                         | String  | `strapi`      |
| dbusername     |                                         | String  | `strapi`      |
| dbpassword     |                                         | String  |               |
| projecttype    | `ts` \| `js`                            | String  | `js`          |
| packagemanager | `yarn` \| `npm`                         | String  | `yarn`        |
| usecompose     | `true` \| `false`                       | Boolean | `false`       |
| env            | `development` \| `production` \| `both` | String  | `development` |

🧹 Resetting project

npx @strapi-community/dockerize reset

Note that RESET will delete the config/env folder with all of it's content

πŸš€ Features

  • Easy add support for docker
  • Auto detects yarn or npm in your project
  • Build a docker-compose file

🐳 Docker-compose support

  • Postgres 14.5
  • MySQL 8
  • MariaDB 10

πŸŽ— Contributing

I/We are actively looking for contributors, maintainers, and others to help shape this package. As this plugins sole purpose within the Strapi community is to be used by other developers and plugin maintainers to get fast responses time.

If interested please feel free to email the lead maintainer Simen at: simen@dehlin.dev or ping Cookie Monster#6725 on Discord.

⭐️ Show your support

Give a star if this project helped you. Feel free to buy [@Eventyret] a β˜•οΈ if it was helpful. Open Collective

🌎 Community support

πŸ™‹β€β™€οΈ Authors

πŸ™‹β€β™‚οΈ Contributors (Thank you πŸ™)

πŸ”– License

See the LICENSE file for licensing information.

Keywords

strapi-tool-dockerize

FAQs

Package last updated on 23 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.