mirror of
https://github.com/gabehf/random-image-server.git
synced 2026-03-08 23:18:16 -07:00
Update README.md
This commit is contained in:
parent
cc2fb9e2fb
commit
e562e2216c
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
ALLOWED_EXTENSIONS: .png,.jpg # comma-separated; default: .png,.jpg,.jpeg,.webp
|
ALLOWED_EXTENSIONS: .png,.jpg # comma-separated; default: .png,.jpg,.jpeg,.webp
|
||||||
ports:
|
ports:
|
||||||
- 8888:8080
|
- 8080:8080
|
||||||
volumes:
|
volumes:
|
||||||
- /path/to/my/images/:/images:ro
|
- /path/to/my/images/:/images:ro
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
@ -49,4 +49,4 @@ Build & run the program
|
||||||
go build -o random-image-server . && ./random-image-server
|
go build -o random-image-server . && ./random-image-server
|
||||||
```
|
```
|
||||||
|
|
||||||
Then navigate to `localhost:8080` and you will be served a random image from the directory.
|
Then navigate to `localhost:8080` and you will be served a random image from the directory.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue