docker-collection icon indicating copy to clipboard operation
docker-collection copied to clipboard

Permanent watch

Open Noumcreation opened this issue 7 years ago • 2 comments

You've done a great sass container. I was wondering if there was anyway to have it up and runing to watch for modifications while working ?

Noumcreation avatar May 11 '18 08:05 Noumcreation

hi @Noumcreation,

to be honest i haven't used it for a while but i think i have it implemented. You can have a look at the gulpfile.js here:

here my docker-compose file with some settings of a older project from me where i used it:

services:

  hugo:
    image: ellerbrock/alpine-hugo:latest
    command: server --bind 0.0.0.0 -w
    volumes:
      - ${DIR_HUGO_DEV}:/site
    ports:
      - ${PORT_HUGO}:1313
    networks:
      - webdev

  gulp:
    image: ellerbrock/alpine-gulp-sass
    volumes:
      - ${DIR_SASS}:/site/sass
      - ${DIR_CSS}:/site/css
    environment:
      - SASS=${FILES_SASS}
      - GULP_DEBUG=${GULP_DEBUG}
    command: [ "gulp", "sass:watch" ]
    stdin_open: true
    tty: true
    entrypoint: ash
    depends_on:
      - hugo
    networks:
      - webdev

networks:
  webdev:
    driver: bridge

Hope this may help you ...

Cheers Maik

ellerbrock avatar May 16 '18 14:05 ellerbrock

Great, I'll have a look. Seems to be exactly what i'm looking for Thanks !

Noumcreation avatar May 17 '18 09:05 Noumcreation