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
This commit is contained in:
nmemmert committed 2025-10-22 15:15:54 -04:00
1 parent 9f31fd3e79
commit 1932dbe1fc
1 file changed
+14 -6
+14 -6
View File
@@ -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
start_period: 40s
networks:
prayer-network:
driver: bridge