How to run latest Strapi with docker?

Thanks!

There is no way to have just docker-compose file? Using SQLite by binding mount is bad practise?

Anyways with that command I ran into errors:

osboxes@osboxes:~/strapi$ npx @strapi-community/dockerize

Need to install the following packages:

  @strapi-community/dockerize

Ok to proceed? (y) y

npm WARN EBADENGINE Unsupported engine {

npm WARN EBADENGINE   package: 'liquidjs@10.4.0',

npm WARN EBADENGINE   required: { node: '>=14' },

npm WARN EBADENGINE   current: { node: 'v12.22.9', npm: '8.5.1' }

npm WARN EBADENGINE }

internal/modules/cjs/loader.js:818

  throw err;

  ^



Error: Cannot find module 'fs/promises'

Require stack:

- /home/osboxes/.npm/_npx/c78dafd2dc881eeb/node_modules/@strapi-community/dockerize/utils/utils.js

- /home/osboxes/.npm/_npx/c78dafd2dc881eeb/node_modules/@strapi-community/dockerize/utils/goodbye.js

- /home/osboxes/.npm/_npx/c78dafd2dc881eeb/node_modules/@strapi-community/dockerize/utils/index.js

- /home/osboxes/.npm/_npx/c78dafd2dc881eeb/node_modules/@strapi-community/dockerize/cli/quickstart.js

- /home/osboxes/.npm/_npx/c78dafd2dc881eeb/node_modules/@strapi-community/dockerize/cli/index.js

- /home/osboxes/.npm/_npx/c78dafd2dc881eeb/node_modules/@strapi-community/dockerize/index.js

    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)

    at Function.Module._load (internal/modules/cjs/loader.js:667:27)

    at Module.require (internal/modules/cjs/loader.js:887:19)

    at require (internal/modules/cjs/helpers.js:74:18)

    at Object.<anonymous> (/home/osboxes/.npm/_npx/c78dafd2dc881eeb/node_modules/@strapi-community/dockerize/utils/utils.js:2:30)

    at Module._compile (internal/modules/cjs/loader.js:999:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

    at Module.load (internal/modules/cjs/loader.js:863:32)

    at Function.Module._load (internal/modules/cjs/loader.js:708:14)

    at Module.require (internal/modules/cjs/loader.js:887:19) {

  code: 'MODULE_NOT_FOUND',

  requireStack: [

    '/home/osboxes/.npm/_npx/c78dafd2dc881eeb/node_modules/@strapi-community/dockerize/utils/utils.js',

    '/home/osboxes/.npm/_npx/c78dafd2dc881eeb/node_modules/@strapi-community/dockerize/utils/goodbye.js',

    '/home/osboxes/.npm/_npx/c78dafd2dc881eeb/node_modules/@strapi-community/dockerize/utils/index.js',

    '/home/osboxes/.npm/_npx/c78dafd2dc881eeb/node_modules/@strapi-community/dockerize/cli/quickstart.js',

    '/home/osboxes/.npm/_npx/c78dafd2dc881eeb/node_modules/@strapi-community/dockerize/cli/index.js',

    '/home/osboxes/.npm/_npx/c78dafd2dc881eeb/node_modules/@strapi-community/dockerize/index.js'

  ]

}

osboxes@osboxes:~/strapi$