Use GHCR image in compose and document pull/run
This commit is contained in:
1 parent
e397f11285
commit
ccaf2c0dd7
2 files changed
+14
-1
No files matched your search
@@ -27,6 +27,19 @@ docker compose up -d
|
|||||||
|
|
||||||
App runs at **http://localhost:3000**
|
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 "<GITHUB_PAT>" | docker login ghcr.io -u nmemmert --password-stdin
|
||||||
|
```
|
||||||
|
|
||||||
## Change the port
|
## Change the port
|
||||||
|
|
||||||
Edit `docker-compose.yml`:
|
Edit `docker-compose.yml`:
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
weather:
|
weather:
|
||||||
build: ./app
|
image: ghcr.io/nmemmert/weather:latest
|
||||||
container_name: weather-app
|
container_name: weather-app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in new issue
Block a user