|
|
|
|
@ -26,7 +26,7 @@ services:
|
|
|
|
|
environment:
|
|
|
|
|
ALLOWED_EXTENSIONS: .png,.jpg # comma-separated; default: .png,.jpg,.jpeg,.webp
|
|
|
|
|
ports:
|
|
|
|
|
- 8888:8080
|
|
|
|
|
- 8080:8080
|
|
|
|
|
volumes:
|
|
|
|
|
- /path/to/my/images/:/images:ro
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
@ -49,4 +49,4 @@ Build & run the program
|
|
|
|
|
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.
|
|
|
|
|
|