Skip to content

Commit abde0b2

Browse files
committed
Updated readme [skip ci]
1 parent cc83d5c commit abde0b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@ A Docker image for [Blazer](https://github.com/ankane/blazer)
44

55
## Getting Started
66

7-
Pull the image
7+
Pull the image:
88

99
```sh
1010
docker pull ankane/blazer
1111
```
1212

13-
Create database tables
13+
Create database tables:
1414

1515
```sh
1616
docker run -ti -e DATABASE_URL=postgres://user:password@hostname:5432/dbname ankane/blazer rails db:migrate
1717
```
1818

19-
Run the web server
19+
Run the web server:
2020

2121
```sh
2222
docker run -ti -e DATABASE_URL=postgres://user:password@hostname:5432/dbname -p 8080:8080 ankane/blazer
2323
```
2424

25-
And visit [http://localhost:8080](http://localhost:8080)
25+
Use URL-encoding for any special characters in the username or password. For databases on the host machine, use `host.docker.internal` as the hostname (on Linux, this requires Docker 20.04+ and `--add-host=host.docker.internal:host-gateway`).
2626

27-
> On Mac, use `host.docker.internal` instead of `localhost` to access the host machine (requires Docker 18.03+)
27+
Then visit [http://localhost:8080](http://localhost:8080).
2828

2929
## Authentication
3030

0 commit comments

Comments
 (0)