Update README.md

This commit is contained in:
Gabe Farrell 2025-03-03 03:33:03 -05:00 committed by GitHub
parent cc2fb9e2fb
commit e562e2216c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.