Skip to content

Instantly share code, notes, and snippets.

@chrisjimallen
Created March 3, 2017 18:40
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisjimallen/b628355c32eb96ad2d8945188cb5799f to your computer and use it in GitHub Desktop.
Save chrisjimallen/b628355c32eb96ad2d8945188cb5799f to your computer and use it in GitHub Desktop.
Browsersync working in docker container.
version: '2'
services:
wordpress:
image: wordpress
expose:
- 80
environment:
WORDPRESS_DB_PASSWORD: example
volumes:
- ./theme:/var/www/html/wp-content/themes/theme
mysql:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: example
node:
restart: 'no'
image: node:slim
depends_on:
- wordpress
volumes_from:
- wordpress
working_dir: /var/www/html/wp-content/themes/theme
build:
context: .
dockerfile: WordpressBuild
args:
- SITE_VERSION=0.0.1
ports:
- 3000:3000
- 3001:3001
@flacoman91
Copy link

Hi
by any chance can you share the working gulpfile as well?
I am having the issue where i can see the browsersync ui, but the proxy for my site is not working.
thanks

@Syakhisk
Copy link

@flacoman91 did you find any solution?

@flacoman91
Copy link

@flacoman91 did you find any solution?

No, sorry. It's been ages since I've worked with this and wordpress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment