From 2a5a9b14a5958617e839e1cd954f7eb8ec0bb520 Mon Sep 17 00:00:00 2001 From: "courtmanr@gmail.com" Date: Sun, 20 Apr 2025 19:26:51 +0100 Subject: [PATCH] refactor: Update Docker Compose and README to use Docker Hub image --- README.md | 6 +++--- docker-compose.yml | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9e1163e8f..078195863 100644 --- a/README.md +++ b/README.md @@ -131,11 +131,11 @@ Using Docker Compose is the recommended way to run the application in a containe 1. **Configure Environment:** Ensure you have created and configured your `server/.env` file as described in the [Environment Variables](#environment-variables) section above. -2. **Build and Run:** Navigate to the project root directory in your terminal and run: +2. **Run:** Navigate to the project root directory in your terminal and run: ```bash - docker compose up --build -d + docker compose up -d ``` - - `--build`: Builds the Docker image based on the `Dockerfile` if it doesn't exist or if the `Dockerfile` has changed. + - This command will download the pre-built `rcourtman/pulse:latest` image from Docker Hub (if not already present) and start the container. - `-d`: Runs the container in detached mode (in the background). 3. **Access:** The application should now be running. Access it via `http://:7655` (or the host port you mapped in `docker-compose.yml`). diff --git a/docker-compose.yml b/docker-compose.yml index 72a80a604..f761274d7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,9 +2,11 @@ version: '3.8' services: pulse-server: - build: - context: . - dockerfile: Dockerfile + # Build context commented out - using pre-built image from Docker Hub + # build: + # context: . + # dockerfile: Dockerfile + image: rcourtman/pulse:latest # Use the pre-built image from Docker Hub container_name: pulse_server_simplified restart: unless-stopped ports: