Skip to content

Commit

Permalink
add docker-compose and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
mingtsay authored and irvin committed Jul 11, 2022
1 parent 2318766 commit 800fc60
Show file tree
Hide file tree
Showing 3 changed files with 591 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ You can do shallow clone to get this repo more quickly.
3. Run `npm start` in repo directory, the output will stay at `Watching files`.
4. Open `localhost:3000`, modify html and [browsersync](http://browsersync.io/) will reload the preview page.

### Using Docker Compose
1. Install [Docker Desktop](https://www.docker.com/products/docker-desktop/)
* On Ubuntu/Debian, you may install `docker-ce` and `docker-compose-plugin` instead by running `sudo apt install docker-ce docker-compose-plugin`.
2. (optional) Edit `./docker-compose.yml` if you need to change listen port. Default: `8080`
3. (optional) Edit `./docker-apache.conf` if you need to change configurations for `httpd`.
4. Run `docker compose up -d` in repo directory to build and run the container.
5. Open http://localhost:8080 in your browser.
6. Run `docker compose down` in repo directory to remove the container.

## Static Pages Local Installation

Expand Down
Loading

0 comments on commit 800fc60

Please sign in to comment.