Skip to content

Commit

Permalink
apply review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecitylights committed Sep 1, 2023
1 parent 05d11ac commit 1455be8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ Generatr container. So
is needed to expose the container's port 8080 to the host (web browser). In the example above, the
`-p 8080:8080` argument tells Docker to bind the local machine / host's port 8080 to the container's port 8080.

#### Simplify using Docker-Compose
Using Docker-Compose we can simplify the process.
#### Simplify using Docker Compose
Using [Docker Compose](https://docs.docker.com/compose) we can simplify the process.
Add a docker-compose.yml next to your workspace.dsl.
Add contents
```
Expand All @@ -255,7 +255,6 @@ services:
image: ghcr.io/avisi-cloud/structurizr-site-generatr
volumes:
- .:/var/model
# command: generate-site -w workspace.dsl
command: serve -w workspace.dsl
working_dir: /var/model
ports:
Expand All @@ -267,6 +266,8 @@ docker-compose up
```
This will host your pages at `localhost:8080`

You can adjust the command to tailor it to your needs, for example by including `--assets-dir` option to including an assets-folder. Also you can change the port number used to host the site: `<my_port>:8080`

## Customizing the generated website

The site generator use the
Expand Down

0 comments on commit 1455be8

Please sign in to comment.