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:
1 parent
9f31fd3e79
commit
1932dbe1fc
1 file changed
+13
-5
+13
-5
@@ -2,17 +2,25 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
prayer-app:
|
prayer-app:
|
||||||
build:
|
image: ghcr.io/nmemmert/prayer-app:latest
|
||||||
context: .
|
container_name: prayer-app
|
||||||
dockerfile: Dockerfile
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- 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:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
|
test: ["CMD", "curl", "-f", "http://localhost:3000"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 40s
|
start_period: 40s
|
||||||
|
|
||||||
|
networks:
|
||||||
|
prayer-network:
|
||||||
|
driver: bridge
|
||||||
Reference in new issue
Block a user