Skip to content

Commit

Permalink
Add volume bindings for config and data in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitris Pappas authored and igwtech committed Mar 7, 2024
1 parent 3fcb3d3 commit 1500574
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $ docker run -it --rm openas2:latest
You can test it by visiting `http://container-ip:10080` in a browser or, if you need access outside the host, on port 4080:

```console
$ docker run -it --rm -p 4080:10080 -p 4081:10081 -p 8443:8080 openas2:latest
$ docker run -it --rm -p 4080:10080 -p 4081:10081 -p 8443:8080 -v ${PWD}/config:/opt/openas2/config -v ${PWD}/data:/opt/openas2/data openas2:latest
```

You can then go to `http://localhost:4080` or `http://host-ip:4080` in a browser (noting that it will return a 401 since there are no proper AS2 headers sent by the browser by default).
Expand All @@ -90,7 +90,7 @@ $ docker build -t openas2:latest .
Run the OpenAS2 server, with its network set to "host", so that the WebUI can access the server.

```console
$ docker run -it --rm --net=host -p 4080:10080 -p 4081:10081 -p 8443:8080 openas2:latest
$ docker run -it --rm --net=host -p 4080:10080 -p 4081:10081 -p 8443:8080 -v ${PWD}/config:/opt/openas2/config -v ${PWD}/data:/opt/openas2/data openas2:latest
```

In a separate terminal, build the WebUI docker image:
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ services:
- 4080:10080
- 4081:10081
- 8443:8080
volumes:
- ./config:/opt/openas2/config
- ./data:/opt/openas2/data
tty: true
stdin_open: true

Expand Down

0 comments on commit 1500574

Please sign in to comment.