git clone git@github.com:szujak/webpack-hmr-docker.git
cd webpack-hmr-docker
docker-compose up
docker-compose up --build # if you want to rebuild image from tools/docker/Dockerfile
docker-compose down -v
# docker-compose.yml
services:
app:
ports:
- 4444:4444
# tools/docker/Dockerfile
ENV PORT=4444
# docker-compose.yml
services:
app:
volumes:
- .:/my/own/path
# tools/docker/Dockerfile
ENV APP_PATH=/my/own/path
# docker-compose.yml
services:
app:
container_name: my_awesome_name