menu

Canner

⚡️A Content Management Framework Canner standardized Content Management Architecture for enterprises, create custom Content Management System easy and fast.. Support us 👉https://opencollective.com/cannercms

Channels
Team

canner dose not run in Docker container

January 29, 2019 at 10:01pm

canner dose not run in Docker container

January 29, 2019 at 10:01pm

I want to create a docker container with https://github.com/Canner/canner-quick-start base project, but this container not export the port.

The docker-compose.yml

Image

I think that this problem is about webpack...


January 30, 2019 at 1:24pm

I think you're right. The issue is to do with webpack-dev-server starting on a local ip that isn't 0.0.0.0. Try starting with the flag --host 0.0.0.0 . So your package.json might include something like: "scripts": { "start": "webpack-dev-server --host 0.0.0.0 --history-api-fallback" } or "scripts": { "start": "canner script:serve /app/schema/canner.schema.js --host 0.0.0.0 --port 9090" }

Edited
like-fill
2
  • reply
  • like

January 31, 2019 at 2:24am

hi @charlitoro, indeed, the issue is related to webpack-dev-server. Thanks to @davey-12 , the solution is described here in issue #111 (https://github.com/Canner/canner/issues/111).

The reason we haven't written anything related to docker in our document, is that Canner v3 release is right around the corner and we already make sure docker can work well with v3. We'll release docker image that you can use directly to deploy your self-hosted canner as well.

like-fill
3
  • reply
  • like