From 1932dbe1fc9d2577700b5924bbfb27c71ea96ec3 Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Wed, 22 Oct 2025 15:15:54 -0400 Subject: [PATCH] Update docker-compose.yml for production deployment - Use GitHub Container Registry image instead of local build - Add EmailJS environment variables for email functionality - Configure proper networking and health checks --- docker-compose.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ea5b31d..273f48b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,17 +2,25 @@ version: '3.8' services: prayer-app: - build: - context: . - dockerfile: Dockerfile + image: ghcr.io/nmemmert/prayer-app:latest + container_name: prayer-app + restart: unless-stopped ports: - "3000:3000" environment: - NODE_ENV=production - restart: unless-stopped + - NEXT_PUBLIC_EMAILJS_SERVICE_ID=service_zwpcif9 + - NEXT_PUBLIC_EMAILJS_TEMPLATE_ID=template_z50fk3e + - NEXT_PUBLIC_EMAILJS_PUBLIC_KEY=W6JhfYIWckVEP2nrm + networks: + - prayer-network healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"] + test: ["CMD", "curl", "-f", "http://localhost:3000"] interval: 30s timeout: 10s retries: 3 - start_period: 40s \ No newline at end of file + start_period: 40s + +networks: + prayer-network: + driver: bridge \ No newline at end of file