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: