CannerCMS / canner-quick-start

The simplest example of building a CMS with Canner
https://canner-quick-start.netlify.com/canner-quick-start/info
1 stars 0 forks source link

canner dose not run in Docker #1

Open charlitoro opened 5 years ago

charlitoro commented 5 years ago

I want to create a docker container with this base project, but this container not export the port. The docker-compose.yml:

version: '3.3'
services:
    cms-node:
        build: .
        container_name: cms-node 
        volumes:
            - ./:/usr/app/
            - /usr/app/node_modules
        command: bash -c "yarn install && yarn start"
        ports:
            - 3000:8080

I think that this problem is about webpack...

charlitoro commented 5 years ago

This help me, (https://medium.com/@zwegrzyniak/docker-compose-and-webpack-dev-server-hot-reloads-b73b65d13d79) but i dont sure for production