Your command and entrypoint configuration might be causing issues. You're using both entryPoint and command with /bin/bash, which might cause the container to exit immediately. Try either. Also you might need to verify the container's memory setting.
From aws side, Your EC2 instance need enough memory for both containers. Check if your ECS instance has the required IAM roles Verify your security groups allow the specified ports