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:
parent
5db29f7a26
commit
9d12f321be
1 changed files with 0 additions and 11 deletions
|
|
@ -60,17 +60,6 @@ services:
|
|||
echo 'Starting Node.js server...';
|
||||
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:
|
||||
etsy_uploads:
|
||||
|
|
|
|||
Loading…
Reference in a new issue