From ccaf2c0dd7b1078a79aa6f07f9043494d02026fe Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 16 Mar 2026 09:55:28 -0400 Subject: [PATCH] Use GHCR image in compose and document pull/run --- README.md | 13 +++++++++++++ docker-compose.yml | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e09a48..0216ae8 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,19 @@ docker compose up -d App runs at **http://localhost:3000** +## Pull prebuilt image + +```bash +docker pull ghcr.io/nmemmert/weather:latest +docker run -d --name weather-app -p 3000:3000 ghcr.io/nmemmert/weather:latest +``` + +If the package is private, log in first: + +```bash +echo "" | docker login ghcr.io -u nmemmert --password-stdin +``` + ## Change the port Edit `docker-compose.yml`: diff --git a/docker-compose.yml b/docker-compose.yml index 02071ba..ab06b1d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ services: weather: - build: ./app + image: ghcr.io/nmemmert/weather:latest container_name: weather-app restart: unless-stopped ports: