2.3 KiB
2.3 KiB
Updated Restart Instructions for OpnForm
Changes Made
- Removed health check from api-nginx - This was causing the "starting" status
- Fixed PHP-FPM health check - Changed to check process existence
- Made services accessible externally - Changed ports from localhost-only to all interfaces
Step-by-Step Restart Process
1. Stop ALL OpnForm Containers
In your Docker web interface:
- Select ALL OpnForm containers
- Click "Stop"
- Wait for all to fully stop
2. Remove the api-nginx Container (Important!)
- Select the
opnform-api-nginxcontainer - Click "Remove" or "Delete"
- This ensures it recreates with the new configuration
3. Start Containers in Order
Start each container and wait for it to be ready before starting the next:
- opnform-db - Wait until "healthy"
- opnform-redis - Wait until "healthy"
- opnform-api - Wait until "healthy" (may take 90 seconds)
- opnform-api-nginx - Should show "running" (no health check now)
- opnform-api-worker - Wait until running
- opnform-api-scheduler - Wait until running
- opnform-client - Wait until "healthy"
4. Verify Everything Works
Check nginx is actually running:
Look at the logs for opnform-api-nginx. You should see:
Configuration complete; ready for start up
Test the services:
5. If api-nginx Still Shows Issues
Check if PHP-FPM is running in the API container:
- Go to the
opnform-apicontainer - Check the logs - should show:
fpm is running, pid 1 - If PHP-FPM isn't running, the API container needs to be restarted
6. Common Issues
Port already in use:
- Make sure no other services are using ports 7654 or 7655
- Check with:
netstat -tlnp | grep -E '7654|7655'on the host
Cannot connect to API:
- Ensure firewall allows ports 7654 and 7655
- Try accessing locally first:
curl http://localhost:7654/api/health
nginx won't start:
- Check logs for configuration errors
- Verify the api-nginx.conf file exists
Security Reminder
Services are now exposed on all network interfaces (0.0.0.0). For production:
- Configure firewall rules to restrict access
- Set up your host nginx with SSL as planned
- Or change back to 127.0.0.1 after testing