Fix YAML syntax error in deployment compose file

🔧 Fix Docker Compose YAML Issue:
- Remove duplicate 'command' key that was causing parse error
- Keep the cleaner command with better logging
- Ensures proper YAML structure for container interfaces

 Now Ready for Deployment:
- Valid YAML syntax for Portainer/Docker Desktop
- Single command block for container startup
- Clear logging for troubleshooting

This fixes the 'mapping key command already defined' error.
This commit is contained in:
dlawler489 2026-04-21 09:23:56 +10:00
parent 5db29f7a26
commit 9d12f321be

View file

@ -60,17 +60,6 @@ services:
echo 'Starting Node.js server...'; echo 'Starting Node.js server...';
exec node server/dist/index.js exec node server/dist/index.js
" "
command: >
sh -c "
echo 'Starting Etsy Finance Tracker...';
if [ ! -f /usr/share/nginx/html/index.html ]; then
echo 'Extracting client files to shared volume...';
cp -r /app/client/dist/* /usr/share/nginx/html/ 2>/dev/null || true;
echo 'Client files extracted successfully';
fi;
echo 'Starting API server on port 8080...';
exec node server/dist/index.js
"
volumes: volumes:
etsy_uploads: etsy_uploads: