Update Docker Compose configuration for pictshare-browse service; rename service, add container name, and set environment variables for CSV file and image base URL
All checks were successful
CI / build (push) Successful in 36s
All checks were successful
CI / build (push) Successful in 36s
This commit is contained in:
@@ -48,14 +48,17 @@ Example `compose.yml`:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
pictshare-images:
|
pictshare-browse:
|
||||||
|
container_name: pictshare-browse
|
||||||
image: ryanehamil/pictshare-browse:latest
|
image: ryanehamil/pictshare-browse:latest
|
||||||
container_name: pictshare-images
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./uploads:/uploads:ro
|
- ./uploads:/uploads:ro
|
||||||
|
environment:
|
||||||
|
- CSV_FILE=/uploads/sha1.csv
|
||||||
|
- IMAGE_BASE_URL=https://<URLHERE>/
|
||||||
```
|
```
|
||||||
|
|
||||||
Place your `sha1.csv` and images inside the `./uploads` directory in your project root. The container will read from this folder at startup.
|
Place your `sha1.csv` and images inside the `./uploads` directory in your project root. The container will read from this folder at startup.
|
||||||
|
|||||||
Reference in New Issue
Block a user