Skip to content

Commit

Permalink
How to run Writebook in port 80 instead of 5555
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Sep 6, 2024
1 parent d587ee1 commit 88b9c4b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions posts/2024-09-06-start-writebook-in-port-80-not-555.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: How to run Writebook in port 80 instead of 5555
summary: Edit hostconfig.json to bind host port 80 to the writebook docker container.
date_published: 2024-09-06T14:06:42+01:00
keywords:writebook,docker

---

# [%title]

I have installed [Writebook](https://once.com/writebook) in an Oracle Cloud instance.
Writebook uses Docker, and it gets installed by default in host port 5555. However, I want to run Writebook in port 80 of the host because it makes it easier to expose it to the Internet from an Oracle Cloud instance.

- Stop Docker
- Edit `hostconfig.json` for your container hash `sudo vi /var/lib/docker/containers/CONTAINERHASH/hostconfig.json` and replace `"HostPort":"5555"` with replace `"HostPort":"80"`.
- Start Docker.

Courtesy of this great [Stackoverflow answer](https://stackoverflow.com/a/38783433).

0 comments on commit 88b9c4b

Please sign in to comment.