strapi / strapi-docker

Install and run your first Strapi project using Docker
https://strapi.io
MIT License
1.16k stars 447 forks source link

MacOS quickstart docker installation failed #268

Closed dgillier closed 3 years ago

dgillier commented 3 years ago

Hello,

I'm trying to install Strapi on OSX with no success.

I'm using the following docker-compose file :

version: '3'
services:
  strapi:
    image: strapi/strapi
    container_name: strapi
    volumes:
      - ./app:/srv/app
    ports:
      - '1337:1337'

Did docker-compose pull then docker-compose up -d

But the container terminate itself after a few seconds...

docker logs strapi

Starting your app...
Building your admin UI with development configuration ...
ℹ Compiling Webpack
Error: Module not found: Error: Can't resolve './utils/filtersForm' in '/srv/app/.cache/plugins/strapi-plugin-upload/admin/src/components/FiltersPicker/FiltersCard'
    at /srv/app/node_modules/strapi-admin/index.js:71:23
    at finalCallback (/srv/app/node_modules/webpack/lib/Compiler.js:257:39)
    at onCompiled (/srv/app/node_modules/webpack/lib/Compiler.js:265:20)
    at /srv/app/node_modules/webpack/lib/Compiler.js:670:21
    at eval (eval at create (/srv/app/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:28:1)
    at /srv/app/node_modules/webpack/lib/Compilation.js:1173:13
    at /srv/app/node_modules/webpack/lib/Compilation.js:1096:25
    at /srv/app/node_modules/webpack/lib/Compilation.js:1017:13
    at /srv/app/node_modules/neo-async/async.js:2830:7
    at /srv/app/node_modules/neo-async/async.js:2830:7
    at done (/srv/app/node_modules/neo-async/async.js:2863:11)
    at /srv/app/node_modules/neo-async/async.js:2818:7
    at /srv/app/node_modules/webpack/lib/Compilation.js:1017:13
    at /srv/app/node_modules/neo-async/async.js:2830:7
    at /srv/app/node_modules/neo-async/async.js:2830:7
    at done (/srv/app/node_modules/neo-async/async.js:2863:11)

Got a few files installed : Strapi/app/: README.md config favicon.ico package.json api extensions node_modules public

Any idea what's going wrong ? Thanks for your help, Denis

alexandrebodin commented 3 years ago

Hi @dgillier, let's try to find the issue :)

Can you tell me a bit more about your setup.

dgillier commented 3 years ago

@alexandrebodin Thanks !

alexandrebodin commented 3 years ago

Thanks for the infos. Nothing looks wrong at first glance.

can you rm the app folder and retry so we know if it is always the same issue or not :)

dgillier commented 3 years ago

Did that and it's working like a charm now ! (Did not understand what happened...)

Anyway thanks for your help :)

alexandrebodin commented 3 years ago

I'm going to close the issue. If this happens again let us know !