Update environment variable paths and refine Docker setup in CI workflow
All checks were successful
CI / build (push) Successful in 45s
All checks were successful
CI / build (push) Successful in 45s
This commit is contained in:
15
README.md
15
README.md
@@ -11,16 +11,23 @@ This project is designed to run as a containerized Node.js app that serves a gal
|
||||
|
||||
### 1. Using Docker Compose
|
||||
|
||||
If you want to build the image locally, clone this repository and run:
|
||||
|
||||
#### Using the published image from Docker Hub
|
||||
|
||||
You can use the prebuilt image from Docker Hub:
|
||||
|
||||
```bash
|
||||
docker compose build
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
If you are using a published image from a registry, you can skip the build step and just run:
|
||||
This will pull and run `ryanehamil/pictshare-browse:latest` as defined in the provided `compose.yml`.
|
||||
|
||||
#### Building the image locally (optional)
|
||||
|
||||
If you want to build the image yourself, clone this repository and run:
|
||||
|
||||
```bash
|
||||
docker compose build
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
@@ -36,11 +43,13 @@ The provided compose file (compose.yml) is for your convenience—feel free to u
|
||||
Make sure your pictshare uploads directory (with the `sha1.csv` file) is available in a local folder. The example `compose.yml` now mounts `./uploads` from your host to `/uploads` in the container (read-only).
|
||||
|
||||
|
||||
|
||||
Example `compose.yml`:
|
||||
|
||||
```yaml
|
||||
services:
|
||||
pictshare-images:
|
||||
image: ryanehamil/pictshare-browse:latest
|
||||
container_name: pictshare-images
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user