Skip to content

Latest commit

 

History

History
53 lines (50 loc) · 839 Bytes

README.md

File metadata and controls

53 lines (50 loc) · 839 Bytes

How to start

Clone repository

git clone git@github.com:szujak/webpack-hmr-docker.git

Go to the folder

cd webpack-hmr-docker

Run docker

docker-compose up
docker-compose up --build # if you want to rebuild image from tools/docker/Dockerfile

Shoutdown

docker-compose down -v

Modyfications

Changing PORT

# docker-compose.yml
services:
    app:
        ports:
            - 4444:4444
# tools/docker/Dockerfile
ENV PORT=4444

Changing destination folder in docker

# docker-compose.yml
services:
    app:
        volumes:
            - .:/my/own/path
# tools/docker/Dockerfile
ENV APP_PATH=/my/own/path

Changing container name

# docker-compose.yml
services:
    app:
        container_name: my_awesome_name