Update README.md

main
Gabe Farrell 9 months ago committed by GitHub
parent cc2fb9e2fb
commit e562e2216c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save