Skip to content

Commit 3ae426c

Browse files
authored
Merge pull request #44 from ItzNotABug/update-readme-for-docker-testing
Update: `README.md`.
2 parents cbd4abc + dfe37c0 commit 3ae426c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,30 @@ You can use below for combining the above commands -
136136
npm run cleanstart
137137
```
138138

139+
##### Building the Docker Image -
140+
141+
```bash
142+
docker build -t ghosler . --no-cache
143+
```
144+
145+
After a successful local build, run the container -
146+
147+
```bash
148+
docker run --rm name ghosler -d -p 2369:2369 -v ghosler-logs:/usr/src/app/.logs -v ghosler-analytics:/usr/src/app/files -v ghosler-configuration:/usr/src/app/configuration ghosler
149+
```
150+
139151
**Note**: For testing the Docker container over a publicly accessible URL, I used `Cloudflare Tunnel` as it doesn't have
140152
a startup page like `ngrok` or the `VSCode`'s dev tunnel and works good for testing the Ghost Webhooks.
141153

154+
Assuming you have `TryCloudflare CLI` installed, you can do something like this -
155+
156+
```bash
157+
cloudflared tunnel --url http://localhost:2369
158+
```
159+
160+
This command will initialize a tunnel and return a URL that you can use to test.\
161+
For more info, see - [TryCloudflare Tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/do-more-with-tunnels/trycloudflare/).
162+
142163
### Custom Template
143164

144165
If you want to customize the newsletter template even more, follow the steps -

0 commit comments

Comments
 (0)